Add prewarm for states #92
-
I have several states that are launched in parallel and work relatively independently of each other. I don't care about the order of their activation, but I do care about the order of their initialization, because at the moment of initialization we load resources that are displayed in MainCanvas. And I care about the order of these resources in the hierarchy. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for reaching out and sharing your questions and suggestions regarding UniState. 1 Parallel
|
Beta Was this translation helpful? Give feedback.
Thanks for reaching out and sharing your questions and suggestions regarding UniState.
Below are some suggestions and clarifications that might help you.
1 Parallel
Execute
calls in the same state machine are not supportedA single
IStateMachine
may own only one active state chain.Launching several
Execute<TState>()
calls on the same instance (even viaUniTask.WhenAll
) not recommended and with verstion 1.4.0 and above, will raiseAlreadyExecutingException
.See API Details → State Machine → State-Machine Specific Exceptions for the exact wording.
2 Recommended structure