Coder Social home page Coder Social logo

Comments (4)

Seneral avatar Seneral commented on June 12, 2024

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?

from node_editor_framework.

AtheosCode avatar AtheosCode commented on June 12, 2024

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

from node_editor_framework.

Seneral avatar Seneral commented on June 12, 2024

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.

from node_editor_framework.

AtheosCode avatar AtheosCode commented on June 12, 2024

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

from node_editor_framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.