Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public CompoundNode(NodeBasedEditor editor, CompoundBehaviourNode behaviourNode, Vector2 position)
     : base(editor, behaviourNode, position)
 {
     BehaviourNode = behaviourNode;
     OutPoints     = new List <ConnectionPoint>();
 }
Ejemplo n.º 3
0
        private static void OpenWindow()
        {
            NodeBasedEditor window = GetWindow <NodeBasedEditor>();

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