alelievr/NodeGraphProcessor

BaseGraph as asset, changing gameobject and scrolling, nulls out gameobject

jsm174 opened this issue · 1 comments

Hello. I posted this in discord, but the channel doesn't seem to be too active.

Using Unity 2021.2.x, when you load a graph that was saved as an asset, any changes to game objects are lost when the user scrolls.

At first I thought that maybe my code was had something wrong, but this happens with the example graphs as well?

go_lost.mp4

The graph is an asset and a gameobject is in the scene. An asset cannot reference a scene object, which is a general Unity rule. So that is totally ok. It wouldn't make sense, since the asset cannot rely on the scene with the gameobject even being loaded.
So this is not a NGP issue but a Unity rule (not even a limitation, since it is correctly not possible).