Search Results for

    Show / Hide Table of Contents

    Class VariablesListener

    Components for listening for changes in values of a list of variables. An event is raised if ANY of the variables in the list change. Useful for updating UI elements when a value changes (Observable Pattern).

    Inheritance
    Object
    VariablesListener
    Implements
    IVariablesServiceComponent
    IServiceComponent<VariablesService>
    Namespace: NoSuchStudio.Variables
    Assembly: NoSuchStudio-Variables.dll
    Syntax
    [ExecuteInEditMode]
    public class VariablesListener : NoSuchMonoBehaviour, IVariablesServiceComponent, IServiceComponent<VariablesService>

    Fields

    _connected

    Declaration
    [NonSerialized]
    protected Dictionary<Type, bool> _connected
    Field Value
    Type Description
    Dictionary<Type, Boolean>

    changeEvent

    Declaration
    public VariablesListener.ChangeEvent changeEvent
    Field Value
    Type Description
    VariablesListener.ChangeEvent

    Properties

    mono

    Declaration
    public MonoBehaviour mono { get; }
    Property Value
    Type Description
    UnityEngine.MonoBehaviour

    variablesList

    Declaration
    public List<string> variablesList { set; }
    Property Value
    Type Description
    List<String>

    Methods

    IsConnected<ST>()

    Declaration
    public virtual bool IsConnected<ST>()
    
        where ST : Service<ST>
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    ST

    OnDisable()

    Declaration
    protected virtual void OnDisable()

    OnEnable()

    Declaration
    protected virtual void OnEnable()

    Update()

    Declaration
    protected void Update()

    Implements

    IVariablesServiceComponent
    IServiceComponent<>
    In This Article
    Back to top Generated by DocFX