VisitGroupsRecursivly() public static method

public static VisitGroupsRecursivly ( AudioMixerGroupController group, Action visitorCallback ) : void
group UnityEditor.Audio.AudioMixerGroupController
visitorCallback Action
return void
コード例 #1
0
 public static void VisitGroupsRecursivly(AudioMixerGroupController group, System.Action <AudioMixerGroupController> visitorCallback)
 {
     foreach (AudioMixerGroupController child in group.children)
     {
         AudioMixerUtility.VisitGroupsRecursivly(child, visitorCallback);
     }
     if (visitorCallback == null)
     {
         return;
     }
     visitorCallback(group);
 }
コード例 #2
0
 public static void VisitGroupsRecursivly(AudioMixerGroupController group, Action <AudioMixerGroupController> visitorCallback)
 {
     AudioMixerGroupController[] children = group.children;
     for (int i = 0; i < children.Length; i++)
     {
         AudioMixerGroupController group2 = children[i];
         AudioMixerUtility.VisitGroupsRecursivly(group2, visitorCallback);
     }
     if (visitorCallback != null)
     {
         visitorCallback(group);
     }
 }