Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ IsEnabled()

static bool Sisus.Init.IEnableableExtensions.IsEnabled ( this IEnableable enableable)
static

Gets the enabled state of the object.

If the object has a IWrapper<TWrapped> Object, then this returns true if it has not been destroyed, and if it is not a disabled Behaviour.

If this object does not have a wrapper, and it implements IUpdate, ILateUpdate or IFixedUpdate, then this returns true if the object is currently subscribed to receive callbacks during any of those events.

If this object does not have a wrapper, and does not implement any of the above interfaces, then this always returns true.

Parameters
enableableThe object whose enabled state to check.