public static AudioNode CreateNode(GameObject go, AudioNode parent, AudioNodeType type)
        {
            var newNode = CreateNode(go, parent, GUIDCreator.Create(), type);

            newNode.Name = "Name";
            AddDataClass(newNode);
            return(newNode);
        }
        public static AudioEvent CreateNode(AudioEvent audioEvent, EventNodeType type)
        {
            var child = CreateEvent(audioEvent.gameObject, audioEvent, GUIDCreator.Create(), type);

            child.FoldedOut = true;
            child.Name      = "Name";

            return(child);
        }
예제 #3
0
        public static AudioBus CreateNode(AudioBus parent)
        {
            var child = CreateBus(parent.gameObject, parent, GUIDCreator.Create());

            child.FoldedOut = true;
            child.Name      = "Name";

            return(child);
        }
        public static AudioEvent CreateTree(GameObject go, int levelSize)
        {
            var tree = CreateRoot(go, GUIDCreator.Create());

            for (int i = 0; i < levelSize; ++i)
            {
                CreateFolder(go, GUIDCreator.Create(), tree);
            }

            return(tree);
        }
        public static AudioNode CreateTree(GameObject go, int numberOfChildren, AudioBus bus)
        {
            var Tree = CreateRoot(go, GUIDCreator.Create());

            Tree.Bus = bus;
            for (int i = 0; i < numberOfChildren; ++i)
            {
                CreateNode(go, Tree, GUIDCreator.Create(), AudioNodeType.Folder);
            }
            return(Tree);
        }
        public static AudioNode CreateChild(AudioNode parent, AudioNodeType newNodeType)
        {
            Undo.RegisterSceneUndo("Child creation");
            OnRandomNode(parent);

            var child = CreateNode(parent.gameObject, parent, GUIDCreator.Create(), newNodeType);

            parent.FoldedOut = true;
            child.Name       = "Name";
            child.BankLink   = AudioBankWorker.GetParentBank(child);
            AddDataClass(child);
            return(child);
        }
예제 #7
0
        public static AudioBankLink CreateTree(GameObject go)
        {
            var root = CreateRoot(go, GUIDCreator.Create());

            return(root);
        }
예제 #8
0
        public static AudioBus CreateTree(GameObject go)
        {
            var tree = CreateRoot(go, GUIDCreator.Create());

            return(tree);
        }