Extensions for the Unity Animator. Play audio inside the animator.
- Play audio when entering an animator state.
- Add multiple audio clips to be played.
- Play an audio at a given frequency.
- Play audio when exiting an animator state.
Unity 2018.3 and up
- Open the package manager and point to the repo URL
-
Open the manifest
-
Add the repo URL either via https or ssh
{ "dependencies": { "com.brightlib.animator": "https://github.com/carreraSilvio/BrightAnimator" } }
- Clone or download the project zip
- Open your project assets folder
- Copy the repo there
- Click your game object with an animator
- Open the animator window
- Select the animator state
- On the inspector click on Add Behaviour>PlayAudioClip
- Pick the AudioClip you want
- Hit play
Note:
- Make sure you have an AudioSource added to your GameObject