ScriptableListenerBase Class
Definition
Section titled “Definition”public abstract class ScriptableListenerBase : MonoBehaviourInheritance object → UnityEngine.Object → UnityEngine.Component → UnityEngine.Behaviour → UnityEngine.MonoBehaviour
Properties
Section titled “Properties”IsListening
Section titled “IsListening”Is the listener currently listening to the target value?
public bool IsListening { get; }StartListening
Section titled “StartListening”When listeners should start listening.
public StartListenEvents StartListening { get; set; }StopListening
Section titled “StopListening”When listeners should stop listening.
public StopListenEvents StopListening { get; set; }Methods
Section titled “Methods”Awake()
Section titled “Awake()”protected virtual void Awake()Start()
Section titled “Start()”protected void Start()OnEnable()
Section titled “OnEnable()”protected virtual void OnEnable()OnDisable()
Section titled “OnDisable()”protected virtual void OnDisable()OnDestroy()
Section titled “OnDestroy()”protected virtual void OnDestroy()SetListening(bool)
Section titled “SetListening(bool)”Sets the listening state of the object.
protected virtual void SetListening(bool listen)Parameters
Section titled “Parameters”listen bool
If the object should listen to the target value.
ToggleListening(bool)
Section titled “ToggleListening(bool)”[Obsolete("Use 'SetListening' instead. This will be removed in build.", true)]protected virtual void ToggleListening(bool listen)Parameters
Section titled “Parameters”listen bool