UnityEditor.Audio.AudioMixerGroupController.DumpHierarchy C# (CSharp) Méthode

DumpHierarchy() public méthode

public DumpHierarchy ( string title, int level ) : void
title string
level int
Résultat void
        public void DumpHierarchy(string title, int level)
        {
            if (title != "")
            {
                Console.WriteLine(title);
            }
            string str = "";
            int num = level;
            while (num-- > 0)
            {
                str = str + "  ";
            }
            Console.WriteLine(str + "name=" + base.name);
            str = str + "  ";
            foreach (AudioMixerEffectController controller in this.effects)
            {
                Console.WriteLine(str + "effect=" + controller.ToString());
            }
            foreach (AudioMixerGroupController controller2 in this.children)
            {
                controller2.DumpHierarchy("", level + 1);
            }
        }

Usage Example

        public void DumpHierarchy(string title, int level)
        {
            if (title != "")
            {
                Console.WriteLine(title);
            }
            string str = "";
            int    num = level;

            while (num-- > 0)
            {
                str += "  ";
            }
            Console.WriteLine(str + "name=" + base.name);
            str += "  ";
            AudioMixerEffectController[] effects = this.effects;
            for (int i = 0; i < effects.Length; i++)
            {
                AudioMixerEffectController audioMixerEffectController = effects[i];
                Console.WriteLine(str + "effect=" + audioMixerEffectController.ToString());
            }
            AudioMixerGroupController[] children = this.children;
            for (int j = 0; j < children.Length; j++)
            {
                AudioMixerGroupController audioMixerGroupController = children[j];
                audioMixerGroupController.DumpHierarchy("", level + 1);
            }
        }