Enum LifeCycleEvent
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Flags for Unity lifecycle events.
[Flags]
public enum LifeCycleEvent
- Extension Methods
Fields
Awake = 1The
AwakeUnity lifecycle event.FixedUpdate = 32The
FixedUpdateUnity lifecycle event.LateUpdate = 16The
LateUpdateUnity lifecycle event.None = 0No lifecycle event.
OnDestroy = 128The
OnDestroyUnity lifecycle event.OnDisable = 64The
OnDisableUnity lifecycle event.OnEnable = 2The
OnEnableUnity lifecycle event.Start = 4The
StartUnity lifecycle event.Update = 8The
UpdateUnity lifecycle event.UserDefined = 256A user-defined event that does not correspond to a built-in Unity lifecycle method.
Remarks
Use this to specify what events logic should execute in. This is useful when you want this to be configurable in the inspector. IfMatchesExecute(LifeCycleEvent, LifeCycleEvent, Action) for an example.