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