Wobbly Life Mod SDK
 
Loading...
Searching...
No Matches
3D Sounds

Creating a 3D Event

A 3D Event is identical to all the Events you have created before, except it has a new ‘Spatializer’ component on the FMOD Events master track. Adding one of these components to a 2D Event will automatically make it 3D.

This component tells Unity how this sound will react in the 3D game space. The key attribute to pay attention to is the ‘Min & Max Distance’. This controls how far away the player's camera can be from the sound for it to play at its loudest and quietest.

If the player camera is further away than the max distance, then the sound will not be audible at all.

For more information on how it works refer to the FMOD documentation.

Assigning and building banks for 3D Events works exactly the same as any other Event.

Using 3D event in Unity

For 3D Events you can use the same Mod Sound Emitter component as before. The difference is this Transform of the GameObject now matters. You will need to place this Transform where you want the sound to emit from.

In the picture below a 3D Emitter has been placed at the same location as a cube.

You also now can use the ‘B Attach to Game Object’ setting in the ‘Mod Sound Emitter’ component. This is only necessary if you want to move the emitter in code, but ensures that if the GameObject moves, the sound it's emitting will move with it!