This commit is contained in:
Chromium 2025-05-17 12:34:37 +01:00
parent 687c52df62
commit 7fcd596a16
4 changed files with 12 additions and 9 deletions

View File

@ -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;

View File

@ -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);
}

View File

@ -55,6 +55,8 @@ namespace AssetGraph.Core
this.window = window;
StyleSheet styleSheet = AssetDatabase.LoadAssetAtPath<StyleSheet>("Assets/Unity Image Processing/GraphView.uss");
if (styleSheet == null)
{
@ -64,7 +66,7 @@ namespace AssetGraph.Core
GridBackground background = new GridBackground();
background.name = "Grid";
Add(background);
this.Add(background);
background.SendToBack();
CreateButtons();

View File

@ -1,4 +1,4 @@
ImageProcessingGraphViewWindow
AssetGraphViewWindow
{
flex-grow: 1;
}