Reply To: [Design] Graph only as ScriptableObject

Forums 💬 NodeCanvas ⚙️ Support [Design] Graph only as ScriptableObject Reply To: [Design] Graph only as ScriptableObject

#16034
driiade
Participant

    Haha it s just that I pool my graph and used graph.Clone which lead to OnAfterDeserialization and deserializing all the json again. Now I fixed it by creating a new Graph and giving it the right parameter from the original graph…

     

    Long story short, it s just that cloning a graph seems to lead to another deserialization from json which I think we can cut by copying the instance of the original graph. I don t want to cut scriptable object for graph, but copy of original graph doesn t really need to be scriptable object, it s what I’m saying.

     

    And yes I know for async, I use it a alot for pooling AI during loading screen 🙂