Custom Vehicle Controller
  • Custom Vehicle Controller
  • Guides
    • Workflow
      • Quick Setup
      • Creating New Parts
      • Modifying Parts
      • Creating Vehicle Parts Presets
      • Customizable Sets and Runtime Parts Change
      • Engine Performance Customization
      • Exposing Current Car Stats
    • API
      • CustomVehicleController
      • VehicleEngineSoundManager
      • RaceManager
      • RacerProgress
      • RaceSpawner
      • CollisionHandler
    • Vehicle Controller Input Provider
      • Input System Example
      • Mobile Input
    • Tips, Warnings and Requiremens
      • Work With Editor
      • Vehicle Set Up
    • AI Setup
      • AI Racer Creation
      • AI Racer Setup
      • AI Chaser Setup
      • Race Creation
      • Race Configuration
      • Race Information
    • Vehicle Damage System
      • Vehicle Damage Controller
      • Collision Area Partitioner
      • Part Damage Handler
      • Vehicle Attachments Aligner
      • Collision Handler
    • Additional Settings
      • Custom Vehicle Controller
      • Car Visuals Essentials
    • Package Settings
      • Assets Save Location
      • Project-Wide Surface Settings
    • Extra
      • Adding Visual Effects
        • Individual Effect Set Up
      • Adding Sound Effects
        • Adding Engine Sound
        • Adding Extra Sound Effects
  • Converting To Other Render Pipelines
    • Convert To Built-in RenderPipeline
    • Convert To HDRP RenderPipeline
Powered by GitBook
On this page
  • Engine Sound Guide
  • 1. Add Vehicle Engine Sound Manager component
  • 2. Create Engine Sound Scriptable Object
  • 3. Populate the scriptable object with audio clips.
  • 4. Assign references to the Vehicle Engine Sound Manager component.
  • 5. Performance modification impact
  1. Guides
  2. Extra
  3. Adding Sound Effects

Adding Engine Sound

Learn how to easily add engine sounds of your vehicle.

PreviousAdding Sound EffectsNextAdding Extra Sound Effects

Last updated 1 year ago

Engine Sound Guide

1. Add Vehicle Engine Sound Manager component

2. Create Engine 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-> EngineSoundSO.

3. Populate the scriptable object with audio clips.

You must also specify the rpm step between every audio clip for a smooth transition between clips.

Audio clips must be perfectly looped.

You can easily record engine sound clips using Ange The Great Engine Simulator.

Here are the recommended audio import settings for the best audio quality.

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

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

5. Performance modification impact

Version 1.1.0 added engine performance modifications, which can alter the engine's working rpm range. The change in rpm is represented in code and works correctly, but we decided to provide you a choice if you want change the pitch of the sound or not.

If you set the "Engine Modifications Affect Pitch" toggle to "True", then the engine sound's pitch will be additionally multiplied by the ratio between the standard engine's rpm and the modified engine's rpm.

For example, if the engine has 10000 rpm at maximum by default and gains 2000 rpm from the engine parts, the pitch will be multiplied by 1.2.

The "Engine Sound Pitch" works independently from this, so you can modify this value.