The Play method can be used to play a SoundEffect, optionally specifying the volume to play at. The Play method performs the following additional logic:

Code Examples

The following assumes that Explosion is a SoundEffect. This can be created by adding a .wav file to Glue.


Sounds can be played with a custom volume:

// Values are 0 - 1, so .5 is 50%
float volume = .5f;
AudioManager.Play(EngineNoise, volume);

Last updated