Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

All data is lost when I change the scene, even though I have extra saved as an asset file #192

Open
AtheosCode opened this issue Aug 7, 2020 · 4 comments

Comments

@AtheosCode
Copy link
Contributor

No description provided.

@AtheosCode AtheosCode changed the title All data is lost when I change the scen, even though I have extra saved as an asset file All data is lost when I change the scene, even though I have extra saved as an asset file Aug 7, 2020
@Seneral
Copy link
Owner

Seneral commented Aug 7, 2020

What do you mean data lost? Could you elaborate?
The canvas should be preserved, even if you do not explicitly save it. If it does not, it is either a bug or you saved it in the scene, in which case it will not attempt to keep it open.
I just tested in 2019.3 that it works, what Unity version are you using?

@AtheosCode
Copy link
Contributor Author

I edit canvas in Init scene, save it as an asset file, close NodeEditor,I observe the data in inspector,it's right, but switch to other sence. The saved asset file is empty data, Unity2018.4.24f1 install NodeEditor and UndoPro with unitypackage

@Seneral
Copy link
Owner

Seneral commented Aug 7, 2020

So to clarify:

  1. You did not save the canvas in the scene explicitly, you just had the scene open while editing, before saving it as an asset
  2. The data you observe in the inspector is the node canvas UI with title, nodes, etc, after you select the saved asset file (?)
  3. Upon changing scene, clicking on that same asset file again yields what? Node Canvas UI with no nodes?
  4. Now after reopening the window what does it say when you try to open that saved asset file?

When switching scene it will of course unselect the canvas you had selected, resulting in a blank inspector window, so make sure you still have the canvas selected, just in case.

@AtheosCode
Copy link
Contributor Author

Now the replication step is, at run time, I load the asset for parsing, then switch scenes, and the saved asset is lost,
Here is a GIF that emulates the scene switch at run time
GIF 2020-8-12 9-57-41

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

No branches or pull requests

2 participants