Class EngineRunningAircraftSoundComponent
Sound of an engine idling.
Inheritance
EngineRunningAircraftSoundComponent
Assembly: NWH.Aerodynamics.dll
Syntax
[Serializable]
[RequireComponent(typeof(AircraftEngineBase))]
public class EngineRunningAircraftSoundComponent : AircraftSoundComponentBehaviour
Fields
|
Edit this page
View Source
exhaustAirPitch
Pitch of the exhaust air/turbo sound.
Declaration
[Range(0, 5)]
[Tooltip("Pitch of the exhaust air/turbo sound.")]
public float exhaustAirPitch
Field Value
|
Edit this page
View Source
exhaustAirVolumeRange
Volume variation range for exhaust air sound based on RPM.
Declaration
[Range(0, 1)]
[Tooltip("Volume variation range for exhaust air sound based on RPM.")]
public float exhaustAirVolumeRange
Field Value
|
Edit this page
View Source
maxDistortion
Distortion at maximum engine load.
Declaration
[Range(0, 1)]
[Tooltip("Distortion at maximum engine load.")]
public float maxDistortion
Field Value
|
Edit this page
View Source
pitchRange
Pitch added to the base engine pitch depending on engine RPM.
Declaration
[Range(0, 4)]
[Tooltip("Pitch added to the base engine pitch depending on engine RPM.")]
public float pitchRange
Field Value
|
Edit this page
View Source
smoothing
Smoothing of engine volume.
Declaration
[Range(0, 1)]
[Tooltip("Smoothing of engine volume.")]
public float smoothing
Field Value
|
Edit this page
View Source
targetEngine
Declaration
public AircraftEngineBase targetEngine
Field Value
|
Edit this page
View Source
volumeRange
Volume added to the base engine volume depending on engine state.
Declaration
[Range(0, 1)]
[Tooltip("Volume added to the base engine volume depending on engine state.")]
public float volumeRange
Field Value
Methods
|
Edit this page
View Source
Awake()
Declaration
public override void Awake()
Overrides
|
Edit this page
View Source
GetDefaultClipName()
Declaration
public override string GetDefaultClipName()
Returns
Overrides
|
Edit this page
View Source
GetMixerGroupName()
Declaration
public override string GetMixerGroupName()
Returns
Overrides
|
Edit this page
View Source
Initialize(bool, bool)
Initializes the sound component by creating and configuring the audio source.
Declaration
public override void Initialize(bool play, bool loop)
Parameters
| Type |
Name |
Description |
| bool |
play |
Whether to start playing immediately.
|
| bool |
loop |
Whether the audio should loop.
|
Overrides
|
Edit this page
View Source
LoopOnAwake()
Declaration
public override bool LoopOnAwake()
Returns
Overrides
|
Edit this page
View Source
PlayOnAwake()
Declaration
public override bool PlayOnAwake()
Returns
Overrides
|
Edit this page
View Source
Update()
Declaration