-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Engine SFX
The CustomEngineSFXManager
takes the place of the normal EngineRpmSFXManager
, as found on the Cyclops.
This is done to account for user-made engine looping sfx, which the normal sfx manager does not support.
This component offers customizability over volume and pitch of your sound file, relative to the current sub speed.
This customizability takes the place of AnimationCurves
, which allow you to define your own functions in Unity that can smooth out keyframes using bézier curves.
To use these curves, simple click and drag the control points, or choose from one of the preset values. The recommended pitch max and min values are 1.5 and 0.52 respectively. If you go below or exceed these values the library will log a warning to the console. Example curves are shown below
Volume Over Speed:
Pitch Over Speed"
The playLoopSFXWhenNotMoving
bool allows you to keep having the sfx loop play even when you aren't moving, so you get a nice ambient hum in the background (assuming you have your animation curves set up that way)