A collection of scripts useful for playing FMOD audio in Unity.
This package requires FMOD Unity to be installed.
Unity 2021.3+. Will likely work on earlier versions but this is the version I tested with.
Use the Package Manager and use Add package from git URL, using the following:
https://github.com/qhenshaw/FMODExtensions.git
The following systems are included in this package.
Add the FMODCollisionEmitter component to any GameObject with a 3D or 2D collider and configure the FMOD events.
Collision criteria can be tuned with the exposed fields.
Add the FMODFootsteps component to a character and call its PlayFootstep(GameObject surfaceObject) method through C# or with UnityEvents.
The parameter is intended to be a reference to the surface the character is standing on.
Optionally, surface parameters can be added to walkable colliders. New surface materials can be created through:
Right Click => Create => FMOD => FMOD Surface Material
Any collider can then reference the material through the FMODSurface component. This allows surface types represented by a float to be sent to FMOD events using the parameter name Material.