alelievr / NodeGraphProcessor

Node graph editor framework focused on data processing using Unity UIElements and C# 4.6
https://github.com/alelievr/NodeGraphProcessor/projects/2
MIT License
2.3k stars 384 forks source link

Black window #44

Closed Snowirbix closed 4 years ago

Snowirbix commented 4 years ago

I imported the package, and added the example folder in my assets to test. When I open an asset like "Basic example", it works great. But when I go in the window menu and click on 01_DefaultGraph or any other graphs, it just open a black editor window. I opened the UIElements Debugger and there is only the graphRootView with no children visualElements.

Shaun-Fong commented 4 years ago

I imported the package, and added the example folder in my assets to test. When I open an asset like "Basic example", it works great. But when I go in the window menu and click on 01_DefaultGraph or any other graphs, it just open a black editor window. I opened the UIElements Debugger and there is only the graphRootView with no children visualElements.

unity version?

alelievr commented 4 years ago

Hey,

I guess it's because there is no graph asset associated with the graph window when you open it like that.

I fixed this issue in f5c2dbbed2916005f4a43f4a5fc3ef5ada733454, you should be able to edit the graph like before and the data will be stored in a temporary graph (it means that you'll loose your graph when closing the project).
NodeGraphExample

Note that you can also double click on a graph asset in the project view to open a graph asset (which is saved on the disk so you'll not loose your data when closing the editor).