NodeGraphProcessor icon indicating copy to clipboard operation
NodeGraphProcessor copied to clipboard

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

Open jsm174 opened this issue 4 years ago • 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?

https://user-images.githubusercontent.com/1197137/144150304-2d71289f-92ac-41b0-88d8-c1477c24cfe9.mp4

jsm174 avatar Dec 01 '21 00:12 jsm174

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).

leissler avatar Jan 02 '22 00:01 leissler