Can you please provide a bit more information on what you are after and the use case?
Do you want to get a serialization callback within some of your custom classes serialized within a graph (eg Node, Task)?
Yes,I need get a serialization callback within some of custom classes serialized within a graph!For example,The ‘NestedFSMNode._nestedFSM’ was
serialized after I will be Refresh ‘NestedFSMNode’ some Field!
That’s easy 🙂
Just implement the UnityEngine.ISerializationCallbackReceiver to your class.
I have made it so that the ISerializationCallbackReceiver is called as normal for the types serialized within the graph 🙂
Can you please explain a bit more of the use case?
Do you want a callback to the GraphOwner, or a callback to all nodes/tasks/classes within the graph and after the graph serializes and/or deserializes?
Are you after only Serialization, or Deserialization as well?
What is the difference you are after and by which the previously suggested solution of using ISerializationCallbackReceiver interface does not work?
Please let me know.
Thank you!
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.