API reference
API reference
Select your platform
No SDKs available
No versions available

ActiveStateTracker Class

Extends MonoBehaviour
Modifies the active state of a list of GameObjects, as well as the enabled state of a list of components, from the Active field of the given IActiveState.
The component will only activate/enable dependants that were active/enabled during Start() lifecycle phase.
These need to be updated in batch or else we could get inconsistent behaviour when multiple of these are in a scene.

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void Update ( )

Member Functions

void InjectAllActiveStateTracker
( IActiveState activeState )
void InjectActiveState
( IActiveState activeState )
void InjectOptionalIncludeChildrenAsDependents
( bool includeChildrenAsDependents )
void InjectOptionalGameObjects
( List< GameObject > gameObjects )
void InjectOptionalMonoBehaviours
( List< MonoBehaviour > monoBehaviours )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon