public GraphEditorData(uNodeComponentSystem graph) { if (graph is uNodeData data) { gameObject = data.gameObject; _graphData = data; } else if (graph is uNodeRoot root) { _graph = root; if (root) { gameObject = root.gameObject; } } else { _graph = null; } }
public static bool IsRuntimeGraph(this uNodeComponentSystem graph) { return(graph is IIndependentGraph); }