I use FSM in NPC/Quest system,and I want to serialize current state data as SaveData.
At first,I serialize FSMState UID and can find certain node by UID,but find that the UID for the same node has changed when starting game in next time.
So,the UID for FSMState isn’t persistant but only unique in one play.
Making this change will ensure that a UID is generated everytime and not only when it is requested. After you make this change please make sure to save your graph/project so that the generated UID is serialized.