int ChildCount { get; set; }

robot_2Generated
code_blocksInput

Description

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.

Usage

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.

Example

// 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
}