Coder Social home page Coder Social logo

Comments (3)

Seneral avatar Seneral commented on June 12, 2024

Deleting them would be my first move as well if you do not care about the data in them, they are just storing the currently opened canvas.
Deleting them should prompt the editor to automatically recreate them, even if it was open. Did that not happen?
Also, what did you do with the window during all this - e.g. delete while the window is closed, etc.?

from node_editor_framework.

TimOgden avatar TimOgden commented on June 12, 2024

I deleted them with the window open, tried reloading the canvas, closing and opening the window, and it never recreated the DefaultEditorResources asset files, but I realized that the actual 'CurSession.asset' and 'LastSession.asset' files in Assets/Plugins/Node_Editor_Framework were still working fine, and the Node Editor window still worked fine.

The reason for Unity crashing was that I tried to change the backgroundColor field in Node.cs to be a virtual property which I could override to have different colors for different types of nodes. I instead just added:

void OnEnable() {
    backgroundColor = [whatever color you want it to be]
}

on each of my different extensions of Node.cs.

from node_editor_framework.

Seneral avatar Seneral commented on June 12, 2024

Ok then there still might be an issue, it should not switch locations unless you did that by moving them or by changing the settings here.
If you install path is in Assets/, it should have used that path from the beginning, the logic of which can be found here.
The reason it is so complex for a simple cache file path is because it has to be in the Assets folder, so when installed with the unity package manager it will have to be stored outside the Framework folder somewhere in Assets.

Also unity crashing due to virtual properties sounds wrong too. That too might just be an error somewhere in the framework as well, unless unity became a lot more unstable since I last used it

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.