Adding Extra Sound Effects

Learn how to easily add some new sounds to your game to improve the game's feel.

1. Add Vehicle Extra Sound Manager component

2. Create Extra Sound Scriptable Object

In the folder of your choice open the context menu by clicking RMB, then create a scriptable object instance by navigating Create -> CustomVehicleController -> Sound -> ExtraSoundsSO.

You can also create CarForcedInductionSoundSO if the engine is using some kind of forced induction.

If you want to add straight-cut transmission sound (like from the famous BMW M3 GTR) or the gear shift sound, create the transmission sounds scriptable object

3. Populate the scriptable object with audio clips.

All the fields are optional. If audio clips are missing, audio sources for them won't be created.

If you provide several clips, a random one will be played each time.

The inspector will only show property fields for the audio clips that you've assigned. For example, the "Max Wind Volume" field won't be shown if there is no wind noise audio clip in the scriptable object.

The "Turbo Flutter" and "AntiLag" sounds play when the turbocharger is spinning at full speed and the player lets go of the gas.

The "AntiLag Mild" sound plays when the turbocharger is spinning at full speed and the gear changes.

The "Tire Slip" sound plays whenever there is a forward or sideways slip.

The "Wind Noise" plays at all times and increases its volume as the car accelerates to a higher speed.

4. Assign references to the Vehicle Extra Sound Manager component.

3D Sound settings are the same settings that are on the default AudioSource component.

The properties for the specific sounds will appear only if the scriptable object that holds that sound type is assigned.

Last updated