Reply To: Super-slow editing large graphs

Forums 💬 FlowCanvas ⚙️ Support Super-slow editing large graphs Reply To: Super-slow editing large graphs

#21887
Gavalakis
Keymaster

    Hello again,

    This can happen only in the case when a gameobject with the FlowScriptController component is selected and currently in the Unity inspector.
    This is basically due to the fact that Unity calls “OnBeforeSerialize” on every editor frame when an object is in the inspector. (I never understood why).

    The graph editor itself on the other hand should not serialize per frame by any means. Thus, if you deselect the gameobject from the Unity inspector (select something else) and keep editing your graph, things should go back to normal.

    I think the fact that Unity calls OnBeforeSerialize per frame is very weird, but maybe I can come up with a hacky workaround solution to not let that happen.

    Thanks for reminding me of this!