Gentlymad-Studios / NewGraph

A general node graph solution centered on data management. This is based on the idea to visualize complex data structures as graph networks without having to modify already established data classes.
MIT License
246 stars 19 forks source link

Double-click on GraphModel asset does not open graph #7

Closed leissler closed 1 year ago

leissler commented 1 year ago

With a GraphWindow open and double-clicking on a GraphModel-asset that is not currently shown (or alternatively clicking the open button in the Unity-Inspector), the new GraphModel-asset is not opened in the existing window. Even though there is a "Load" button in the GraphView itself, this would be expected behavior.

leissler commented 1 year ago

Changing the GraphModelEditor's OpenGraph method as follows seems to have done the trick:

image

And had to introduce a new public property in GraphWindow class:

image

However, I lack experience with UIToolkit and Unity UI/Editor in general, so I have no idea if this is clean or hacky. Could produce anything, from endless mem leaks to demons spawning out of your PC.

Doppelkeks commented 1 year ago

Fixed in 0.3.1