示例#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);
 }
 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");
        }