예제 #1
0
 public Node(NodeBasedEditor editor, BehaviourNode behaviourNode, Vector2 position)
 {
     Editor        = editor;
     BehaviourNode = behaviourNode;
     Rect          = new Rect(position.x - defaultWidth / 2f, position.y, defaultWidth, defaultHeight);
     InPoint       = new ConnectionPoint(this, ConnectionPointType.In, Editor.InPointStyle, Editor.OnClickInPoint,
                                         null, null);
 }
예제 #2
0
 public CompoundNode(NodeBasedEditor editor, CompoundBehaviourNode behaviourNode, Vector2 position)
     : base(editor, behaviourNode, position)
 {
     BehaviourNode = behaviourNode;
     OutPoints     = new List <ConnectionPoint>();
 }
예제 #3
0
        private static void OpenWindow()
        {
            NodeBasedEditor window = GetWindow <NodeBasedEditor>();

            window.titleContent = new GUIContent("Node Based Editor");
        }