Search Results for

    Show / Hide Table of Contents

    Class MonoDisplayer<T>

    Contains a data and refresh the display on data change.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    MonoDisplayer<T>
    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 Source

    Data

    Declaration
    public Observable<T> Data { get; }
    Property Value
    Type Description
    Observable<T>

    Current data to store

    Methods

    | Edit this page View Source

    ListenTo(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
    | Edit this page View Source

    Refresh()

    Refresh the display of the data.

    Declaration
    public void Refresh()
    | Edit this page View Source

    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
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX