Class MonoDisplayer<T>
Contains a data and refresh the display on data change.
Namespace: GGL.UI
Assembly: GGL.dll
Syntax
[HelpURL("https://ggl.yoannhaffner.com/articles/ui.html#afficher-une-donnée")]
public abstract class MonoDisplayer<T> : MonoBehaviour
Type Parameters
Name | Description |
---|---|
T | Your data |
Properties
| Edit this page View SourceData
Declaration
public Observable<T> Data { get; }
Property Value
Type | Description |
---|---|
Observable<T> | Current data to store |
Methods
| Edit this page View SourceListenTo(Observable<T>)
If you want to define the Observable<T> data yourself, set it here.
Declaration
public void ListenTo(Observable<T> data)
Parameters
Type | Name | Description |
---|---|---|
Observable<T> | data |
Refresh()
Refresh the display of the data.
Declaration
public void Refresh()
Refresh(T, T)
Refresh the display of the data.
Declaration
protected abstract void Refresh(T oldValue, T newValue)
Parameters
Type | Name | Description |
---|---|---|
T | oldValue | |
T | newValue |