Invokes an event when the component is disabled or destroyed. More...
Public Types | |
enum | EventTrigger { OnDisable , OnDestroy } |
Public Member Functions | |
void | RunEvent () |
void | OnWillUnload (int sceneIndex) |
Properties | |
EventTrigger | eventTrigger [get, set] |
Run the event when this happens. | |
UnityEvent | onDisappeared [get, set] |
Invokes an event when the component is disabled or destroyed.
If you don't want to invoke the event when the component is disabled and destroyed by a scene change, call SceneNotifier.NotifyWillUnloadScene().
|
inline |
|
inline |
|
getset |
Run the event when this happens.
|
getset |