Ejemplo n.º 1
0
        /// <summary> Add a node to the graph by type </summary>
        public virtual Node AddNode(Type type)
        {
            Node.graphHotfix = this;
            Node node = ScriptableObject.CreateInstance(type) as Node;

            node.name  = node.GetDefaultNodeName();
            node.graph = this;
            nodes.Add(node);
            return(node);
        }