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); }
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); }