Reply To: [FSM] Unique identifier for a State

NodeCanvas Forums General Discussion [FSM] Unique identifier for a State Reply To: [FSM] Unique identifier for a State

#12358
Gavalakis
Keymaster

Hello again and sorry for the late reply due to summer vacation.
All Nodes (and as such FSMStates) do have a property called “UID” which is exactly that, a unique identifier. It is still a string though just like state name is, since that UID is made with “System.Guid.NewGuid().ToString()”, but it is more convenient that using the state name for this case.
Please note though, that a UID is created only once after it is requested (meaning that once the property “UID” is accessed for the first time).

Please let me know if that works for you, for what you are after.
Thanks!

Join us on Discord: https://discord.gg/97q2Rjh