Impact Sound

Impact Sound Script Explained

Audio Player

Add the audio player here, whether there is one attached to this GameObject or a global one.

Impact Clip

Same settings as above

Min Impact Speed

The speed at which the object has to be moving for impact sounds to happen, the lower the more sensitive

Surface Layers

Add layers where the sounds should happen

Ignore Layer Mask

Ignore the layer mask if you want impact sounds to happen on every single collision

3D Impact Sounds

  1. Additionally you can add the AudioEventPlayer to your GameObject with the impact sound script if you wish to have 3D sounds on any particular object.

    1. Set the automatically attached Audio Source to Spatial Blend 3D

Last updated