Skip to content

Add prewarm for states #92

Answered by bazyleu
cyber-yanus asked this question in Q&A
Discussion options

You must be logged in to vote

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 supported

A single IStateMachine may own only one active state chain.
Launching several Execute<TState>() calls on the same instance (even via UniTask.WhenAll) not recommended and with verstion 1.4.0 and above, will raise AlreadyExecutingException.
See API Details → State Machine → State-Machine Specific Exceptions for the exact wording.


2 Recommended structure

  • Convert the three “independent” pieces into SubStates of one CompositeState.
  • Pass shared data through a single payload

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bazyleu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #84 on June 20, 2025 08:24.