Skip to content

A script used to trigger an 3D FMOD Event and update a distance parameter for that event that is calculated from the closest of multiple player GameObjects in Unity. Primarily to be used in Coop games with a single listener.

License

Notifications You must be signed in to change notification settings

sawyer-king/FMODCoopEmitterAttenuation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

FMOD Coop Emitter Attenuation

Unity 2021.3+ License: MIT

A script used to trigger an 3D FMOD Event and update a distance parameter for that event that is calculated from the closest of multiple player GameObjects in Unity. Primarily to be used in Coop games with a single listener.

This script requires FMOD and Unity.

How to Use

  • Add this script and a collider component (usually a Sphere Collider) to the GameObject that you want sound to emit from, make sure IsTrigger is set to True, then set a radius that makes sense for the scale of your game.
  • Add the Player GameObjects to the list in the script that you want to calculate distance from.
  • Set Radius length for the scale of the distance parameter.
  • Set the name of the FMOD distance parameter as a string.
  • Set the reference for the 3D FMOD Event.

About

A script used to trigger an 3D FMOD Event and update a distance parameter for that event that is calculated from the closest of multiple player GameObjects in Unity. Primarily to be used in Coop games with a single listener.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages