Description
The Id
property of the MixerHandle
struct in the Sandbox.Audio
namespace provides a unique identifier for the mixer handle. This identifier is represented as a System.Guid
, ensuring that each mixer handle can be distinctly recognized and managed within the audio system.
Usage
Use the Id
property to retrieve the unique identifier of a MixerHandle
instance. This can be particularly useful when you need to compare mixer handles or store them in collections that require unique keys.
Example
// Example of accessing the Id property of a MixerHandle
// Assume mixerHandle is an instance of Sandbox.Audio.MixerHandle
Sandbox.Audio.MixerHandle mixerHandle = new Sandbox.Audio.MixerHandle();
// Retrieve the unique identifier
System.Guid mixerId = mixerHandle.Id;
// Output the Id
// Note: Avoid using Console.WriteLine in Sandbox environment
// Instead, use the Id for logic or debugging purposes
// Debug.Log(mixerId.ToString());