Triggering Audio Without Writing Code!
After you have some Sound Groups and Playlists set up, let's see how to trigger them automatically. There are a few scripts to help out on this:
- Ambient Sound: This script is simple but powerful. It will play an Ambient Sound only when the caller is withing hearing range. Read about Ambient Sound here!
- Event Sounds: This extremely powerful script can do a super long list of audio control actions from a wide variety of events, including Monobehavior, NGUI, Core Gamekit, PoolManager and other events, as well as Timeline support. Read about Event Sounds here.
- Button Clicker: This is a script that works with NGUI only. Read about NGUI integration here!
- Footstep Sounds: This is a more compact and focused version of EventSounds.cs, focused on playing different sounds for different collision / triggers on the same game object. Read about Footstep Sounds here!
- Mechanim State Sounds: This is a small script for playing sounds when a Mechanim state is entered or exited. Read about Mechanim State Sounds here!
- Mechanim State Custom Events: This is a small script for firing Custom Events when a Mechanim state is entered or exited. Read about Mechanim State Custom Events here!
- Mechanim State Parameter Commands: This is a small script for firing Parameter Commands when a Mechanim state is entered or exited. Read about Mechanim State Parameter Commands here!