The ChildCount
property of the Sandbox.Audio.Mixer
class provides the number of child mixers associated with this mixer instance. This property is useful for determining how many sub-mixers are currently part of the mixer hierarchy.
The ChildCount
property of the Sandbox.Audio.Mixer
class provides the number of child mixers associated with this mixer instance. This property is useful for determining how many sub-mixers are currently part of the mixer hierarchy.
To access the ChildCount
property, you need to have an instance of the Mixer
class. This property is read-only and returns an integer representing the number of child mixers.
// Assuming 'mixer' is an instance of Sandbox.Audio.Mixer int numberOfChildren = mixer.ChildCount; // Use the number of children for logic if (numberOfChildren > 0) { // Perform operations knowing there are child mixers }