public static InInteractiveMusic CreateFolder(GameObject go, InInteractiveMusic parent) { var newNode = CreateNode <InInteractiveMusic>(go, parent, GUIDCreator.Create()); newNode.type = InteractiveMusicNodeType.Folder; return(newNode); }
private static T CreateNode <T>(GameObject go, InInteractiveMusic parent, int guid) where T : InInteractiveMusic { var node = go.AddComponentUndo <T>(); node.guid = guid; node.nodeName = parent.name + " Child"; node.parent = parent; return(node); }