public NodeData(Type type, string id, string name = "")
 {
     ClassType = type.ToString();
     ID        = id;
     Position  = new NodeVec2(50f, 50f); // Default position
     Name      = name == "" ? "Node" : name;
 }
Beispiel #2
0
        public void Initialize(NodeData data)
        {
            Name     = data.Name;
            ID       = data.ID;
            Position = data.Position;

            InputPins.Clear();  // TEMP!
            OutputPins.Clear(); // TEMP!
            OnInitialize();
        }