private void LoadData() { AllClear(); NodeSerializableData datas = owner.Load(); if (datas == null || datas.nodeDatas == null) { return; } foreach (var node in datas.nodeDatas) { NodeGUIUtility.AddInstance(node); CreateNodeInLoad(node); } foreach (var node in datas.nodeFuncDatas) { NodeGUIUtility.AddInstance(node); CreateNodeInLoad(node); } foreach (var point in datas.nodePointDatas) { NodeGUIUtility.AddInstance(point); CreateNodePointInLoad(point); } foreach (var connect in datas.nodeConnectionDatas) { NodeGUIUtility.AddInstance(connect); CreateConnectionInLoad(connect); } }
public ConnectionPoint(NodePointData data) { NodeGUIUtility.AddInstance(data); this.data = data; }
public NodeGUI(NodeData data) { NodeGUIUtility.AddInstance(data); this.data = data; data.rect.size = new Vector2(180f, 4000f); }
public Connection(NodeConnectionData data) { NodeGUIUtility.AddInstance(data); this.data = data; }