-
Notifications
You must be signed in to change notification settings - Fork 8
Saving and Restoring States
Patrick Hardy edited this page Dec 5, 2019
·
1 revision
- The guid of the active state can be easily retrieved for serialization by using
GetNestedActiveStateGuid
from the state machine instance.
- Use
LoadFromState
from the state machine instance and provide the guid of the active state. - The state machine will automatically set initial states of all affected state machines.
- If the current state of a nested state machine which doesn't contain the active state is important use
GetAllCurrentStateGuids
andLoadFromMultipleStates
from the state machine instance.- Normally nested state machines clear their state on exit. You may use
bReuseCurrentState
andbReuseIfNotEndState
on state machine nodes to change this behavior.
- Normally nested state machines clear their state on exit. You may use
- If you need to save variables you've added to the state machine blueprint you will need to implement your own serializer for this as you would with any other Blueprint.