string Name { get; set; }

robot_2Generated
code_blocksInput

Description

The Name property of the SoundHandle class provides a debug name to help identify the sound. This can be useful for logging or debugging purposes, allowing developers to track and manage sounds more effectively within the application.

Usage

To use the Name property, simply access it from an instance of SoundHandle. You can both get and set this property to assign or retrieve the debug name of the sound.

Example

// Example of setting and getting the Name property of a SoundHandle
SoundHandle sound = new SoundHandle();
sound.Name = "BackgroundMusic";

string soundName = sound.Name;
// soundName now holds the value "BackgroundMusic"