Properties

Event Listener

Let’s go through its properties:

  • Binding:

    • Until_Destroy: will register in Awake() and unsubscribe OnDestroy().

    • Until_Disable: will register OnEnable() and unsubscribe OnDisable().

  • Disable after subscribing: if true, will deactivate the GameObject after registering to the event. Useful for UI elements.

  • Event responses: each response invoked after the event was raised.

    • Delay: a delay in seconds before the response is invoked

    • Scriptable Event: the event to listen to

    • Response: unity actions triggered

You can also register to events directly from code (via the OnRaised action).

Last updated