![]() |
Init(args)
Scripting Reference
|
◆ SetEnabled()
Sets the enabled state of the object. If the object has a Wrapper<TWrapped> component, then this sets its Behaviour.enabled state. If this object does not have a Wrapper<TWrapped> component, and it implements IUpdate, ILateUpdate or IFixedUpdate, then the enabled state controls whether the object is subscribed to receive callbacks during those events. If this object does not have a wrapper, and does not implement any of the above interfaces, then this always returns Disabled objects won't receive callbacks during the IUpdate.Update, ILateUpdate.LateUpdate, or IFixedUpdate.FixedUpdate events.
|