Table of Contents

Enum LifeCycleEvent

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Flags for Unity lifecycle events.

[Flags]
public enum LifeCycleEvent
Extension Methods

Fields

Awake = 1

The Awake Unity lifecycle event.

FixedUpdate = 32

The FixedUpdate Unity lifecycle event.

LateUpdate = 16

The LateUpdate Unity lifecycle event.

None = 0

No lifecycle event.

OnDestroy = 128

The OnDestroy Unity lifecycle event.

OnDisable = 64

The OnDisable Unity lifecycle event.

OnEnable = 2

The OnEnable Unity lifecycle event.

Start = 4

The Start Unity lifecycle event.

Update = 8

The Update Unity lifecycle event.

UserDefined = 256

A 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.

See Also