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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,13 +48,15 @@ namespace AssetGraph.Core
|
|||||||
|
|
||||||
searchProvider = ScriptableObject.CreateInstance<AssetGraphSearchProvider>();
|
searchProvider = ScriptableObject.CreateInstance<AssetGraphSearchProvider>();
|
||||||
searchProvider.graph = this;
|
searchProvider.graph = this;
|
||||||
|
|
||||||
edgeConnectorListener = new AssetGraphEdgeConnector(this);
|
edgeConnectorListener = new AssetGraphEdgeConnector(this);
|
||||||
|
|
||||||
this.nodeCreationRequest = ShowSearchWindow;
|
this.nodeCreationRequest = ShowSearchWindow;
|
||||||
|
|
||||||
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,12 +66,12 @@ 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();
|
||||||
|
|
||||||
|
|
||||||
this.AddManipulator(new ContentDragger());
|
this.AddManipulator(new ContentDragger());
|
||||||
this.AddManipulator(new SelectionDragger());
|
this.AddManipulator(new SelectionDragger());
|
||||||
this.AddManipulator(new RectangleSelector());
|
this.AddManipulator(new RectangleSelector());
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ImageProcessingGraphViewWindow
|
AssetGraphViewWindow
|
||||||
{
|
{
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user