Class NOSSoundComponent
Looping 'hiss' while NOS is injecting, using the engine source GameObject and mixer group.
Inherited Members
Namespace: NWH.VehiclePhysics2.Modules.NOS
Assembly: NWH.VehiclePhysics2.dll
Syntax
[Serializable]
public class NOSSoundComponent : SoundComponent
Fields
nosModule
Parent NOS module, read for the activation state. Set by NOSModule during initialization.
Declaration
[NonSerialized]
public NOSModule nosModule
Field Value
| Type | Description |
|---|---|
| NOSModule |
Properties
AudioMixerGroup
Gets the Audio Mixer Group this component's AudioSource should output to. Used to route audio through the vehicle's audio mixer for processing and mixing.
Declaration
public override AudioMixerGroup AudioMixerGroup { get; }
Property Value
| Type | Description |
|---|---|
| AudioMixerGroup |
Overrides
ContainerGO
Gets the GameObject container where the AudioSource should be created. Used to position audio sources at specific locations on the vehicle.
Declaration
public override GameObject ContainerGO { get; }
Property Value
| Type | Description |
|---|---|
| GameObject |
Overrides
InitLoop
Gets whether the AudioSource should loop continuously. Override in derived classes to enable looping for continuous sounds like engine running.
Declaration
public override bool InitLoop { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Priority
Gets the priority level for the AudioSource. Lower values indicate higher priority. Range is 0 (highest) to 256 (lowest). Used by Unity's audio system when the maximum number of audio sources is reached.
Declaration
public override int Priority { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Methods
VC_SetDefaults()
Sets base volume and loads the default NOS clip from resources when none is assigned.
Declaration
public override void VC_SetDefaults()
Overrides
VC_Update(float)
Plays while the NOS module is injecting, stops otherwise.
Declaration
public override void VC_Update(float DeltaTime)
Parameters
| Type | Name | Description |
|---|---|---|
| float | DeltaTime | Time since last update in seconds. |