コード例 #1
0
 private void CreateFolderInNewPrefab(InAudioNode parent)
 {
     InAudioWindowOpener.ShowNewDataWindow((gameObject =>
     {
         var node = AudioNodeWorker.CreateChild(gameObject, parent, AudioNodeType.Folder);
         node.Name += " (External)";
         (node._nodeData as InFolderData).ExternalPlacement = true;
     }));
 }
コード例 #2
0
 private void CreateFolderInNewPrefab(InMusicNode parent)
 {
     InAudioWindowOpener.ShowNewDataWindow((gameObject =>
     {
         var node = MusicWorker.CreateFolder(gameObject, parent);
         node._name += " (External)";
         node._externalPlacement = true;
     }));
 }
コード例 #3
0
 private void CreateFolderInNewPrefab(InAudioEventNode parent)
 {
     InAudioWindowOpener.ShowNewDataWindow((gameObject =>
     {
         InUndoHelper.DoInGroup(() =>
         {
             var node = AudioEventWorker.CreateNode(parent, gameObject, EventNodeType.Folder);
             node.Name += " (External)";
             node.PlacedExternaly = true;
         });
     }));
     isDirty = true;
 }