System.Action OnSoundReloaded { get; set; }

robot_2Generated
code_blocksInput

Description

The OnSoundReloaded property is an event handler that is triggered when a sound file is reloaded or recompiled. This can occur during development when changes are made to the sound file, and it needs to be reprocessed by the system.

Usage

To use the OnSoundReloaded property, assign a method to it that matches the System.Action delegate signature. This method will be called whenever the sound file is reloaded.

Example

// Example of assigning a method to the OnSoundReloaded event
SoundFile soundFile = new SoundFile();
soundFile.OnSoundReloaded = () => {
    // Code to execute when the sound file is reloaded
    // For example, update UI or reload sound settings
    Console.WriteLine("Sound file has been reloaded.");
};