Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jsm174 opened this issue Dec 1, 2021 · 1 comment

Comments

@jsm174
Copy link

jsm174 commented Dec 1, 2021

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
@leissler
Copy link

leissler commented Jan 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants