This is a system that allows you to quickly and easily add sounds to a player's footsteps when walking on a surface. For example, you can have a player make wooden floor footstep sounds when walking on a wooden floor. This is nice to have if you want to add an extra level of immersion to your worlds!
This is being made free to use by the community and you may alter and improve the package as you wish. All I ask is that, if you alter the package and wish to distribute it, that you do so freely. There is no need to credit me, you may do so if you wish however.
It is VERY important that you have Udonsharp downloaded (or chosen if you are using the VRC Creator Companion) already before downloading this package! The Footstep Sound System package won't work without it!
- Once you've imported or setup the Udonsharp package, import the Footstep Sound System package into Unity.
- Open the Footstep Sound System folder and drag out the prefab
- Once you've done that, you are largely done! All you have to do now is assign Audio Sources to the surfaces that will be walked on.
(All steps will refer to the image included below)
- Ensure that the surface to be walked on has a collider attached to it. (Circled in blue)
- Add an Audio Source to the surface. Do this by scrolling to the bottom of the inspector, clicking "Add Component" and picking Audio Source. (Circled in red)
- Assign an audio clip to the AudioClip field of the Audio Source. (Circled in yellow) *Note: For best results, choose an audio clip that is short (Like roughly one second long) and loops seamlessly
- Ensure none of the checkboxes are marked. (Circled in magenta), unless you need them marked, in that case, go ahead, I won't stop you.
- Once that is all set-up, then congratulations! You should now, hopefully, have a nice footstep sound system running!