FIXED!
This commit is contained in:
parent
687c52df62
commit
7fcd596a16
@ -16,9 +16,9 @@ namespace AssetGraph.Core
|
||||
[CreateAssetMenu(menuName = "Image Processing Graph/New Graph")]
|
||||
public class AssetGraphData : ScriptableObject
|
||||
{
|
||||
[SerializeField] private List<AssetGraphNode> nodes;
|
||||
[SerializeReference] private List<AssetGraphNode> nodes;
|
||||
[SerializeField] private List<GraphConnection> connections;
|
||||
[SerializeField] public List<AssetGraphNode> runOrder;
|
||||
[SerializeReference] public List<AssetGraphNode> runOrder;
|
||||
[SerializeField] public List<AssetGraphStickyNoteData> stickyNotes;
|
||||
|
||||
public List<AssetGraphNode> Nodes => nodes;
|
||||
|
@ -61,6 +61,7 @@ namespace AssetGraph.Core
|
||||
serializedObject = new SerializedObject(currentGraph);
|
||||
currentView = new AssetGraphViewWindow(serializedObject, this);
|
||||
currentView.graphViewChanged += OnChange;
|
||||
rootVisualElement.style.flexGrow = 1;
|
||||
rootVisualElement.Add(currentView);
|
||||
}
|
||||
|
||||
|
@ -48,13 +48,15 @@ namespace AssetGraph.Core
|
||||
|
||||
searchProvider = ScriptableObject.CreateInstance<AssetGraphSearchProvider>();
|
||||
searchProvider.graph = this;
|
||||
|
||||
|
||||
edgeConnectorListener = new AssetGraphEdgeConnector(this);
|
||||
|
||||
this.nodeCreationRequest = ShowSearchWindow;
|
||||
|
||||
|
||||
this.window = window;
|
||||
|
||||
|
||||
|
||||
StyleSheet styleSheet = AssetDatabase.LoadAssetAtPath<StyleSheet>("Assets/Unity Image Processing/GraphView.uss");
|
||||
if (styleSheet == null)
|
||||
{
|
||||
@ -64,12 +66,12 @@ namespace AssetGraph.Core
|
||||
|
||||
GridBackground background = new GridBackground();
|
||||
background.name = "Grid";
|
||||
Add(background);
|
||||
this.Add(background);
|
||||
background.SendToBack();
|
||||
|
||||
|
||||
CreateButtons();
|
||||
|
||||
|
||||
|
||||
|
||||
this.AddManipulator(new ContentDragger());
|
||||
this.AddManipulator(new SelectionDragger());
|
||||
this.AddManipulator(new RectangleSelector());
|
||||
|
@ -1,4 +1,4 @@
|
||||
ImageProcessingGraphViewWindow
|
||||
AssetGraphViewWindow
|
||||
{
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user