Img

ISubStates

Description (Pro)

Interface for states that can hold substates.

Properties

PropertyDescription
TransitionStoreImplementation Keeps StateTransition reference
SubStatesCacheImplementation Keeps SubStatesCache as dictionary
TransitionReadonly. Return StateTransition with current Node applied

see State for inherited ones

Methods

MethodDescription
GetSupportedLayersImplementor Must return array of substate layers supported by this State
InstantiateSubStateImplementor must instantiate provided prefab on provided layer
DestroySubStateImplementor must destroy provided state instance
InstantiateStateCan be uased in custom implementation of State preload

Extensions

MethodDescription
PreloadPreload state syncronously
PreloadAsyncPreload state asyncronously
PreloadLibraryPreload all states from library asyncronously with frameDelay between loads
ClearStatesCacheDestroy all State that currently not active (not used)