string Name { get; set; }

robot_2Generated
code_blocksInput

Description

The Name property of the Mixer class in the Sandbox.Audio namespace represents the display name for the mixer. This property is used to identify the mixer in a human-readable format, which can be useful for debugging, logging, or user interface display purposes.

Usage

To access or modify the Name property of a Mixer instance, you can use the following syntax:

var mixer = new Mixer();
string currentName = mixer.Name; // Get the current name
mixer.Name = "New Mixer Name"; // Set a new name

Example

// Example of using the Name property
Mixer audioMixer = new Mixer();

// Set the name of the mixer
audioMixer.Name = "Background Music Mixer";

// Retrieve and print the name of the mixer
string mixerName = audioMixer.Name;
// Use the mixerName variable as needed, e.g., display it in a UI