Skip to content

ScriptableListenerBase Class

C#
public abstract class ScriptableListenerBase : MonoBehaviour

Inheritance object → UnityEngine.Object → UnityEngine.Component → UnityEngine.Behaviour → UnityEngine.MonoBehaviour

Is the listener currently listening to the target value?

C#
public bool IsListening { get; }

When listeners should start listening.

C#
public StartListenEvents StartListening { get; set; }

When listeners should stop listening.

C#
public StopListenEvents StopListening { get; set; }
C#
protected virtual void Awake()
C#
protected void Start()
C#
protected virtual void OnEnable()
C#
protected virtual void OnDisable()
C#
protected virtual void OnDestroy()

Sets the listening state of the object.

C#
protected virtual void SetListening(bool listen)

listen bool
If the object should listen to the target value.

C#
[Obsolete("Use 'SetListening' instead. This will be removed in build.", true)]
protected virtual void ToggleListening(bool listen)

listen bool