コード例 #1
0
        public virtual ConnectionPort CreateNew(Node body)
        {
            ConnectionPort port = ScriptableObject.CreateInstance <ConnectionPort> ();

            port.Init(body, Name);
            port.direction          = Direction;
            port.styleID            = StyleID;
            port.maxConnectionCount = MaxConnectionCount;
            return(port);
        }
コード例 #2
0
        public virtual ConnectionPort CreateNew(Node body)
        {
            ConnectionPort port = ScriptableObject.CreateInstance <ConnectionPort>();

            port.Init(body, Name);
            port.direction          = Direction;
            port.styleID            = StyleID;
            port.maxConnectionCount = MaxConnectionCount;
            NodeEditorSaveManager.AddSubAsset(port, body);
            return(port);
        }