Kerbal Space Program
1.12.4
|
Public Types | |
enum | AudioChannel { AudioChannel.Ship, AudioChannel.Voice, AudioChannel.Ambient, AudioChannel.Music, AudioChannel.UI } |
Public Member Functions | |
override void | OnEvent (float power) |
override void | OnEvent () |
override void | OnInitialize () |
override void | OnLoad (ConfigNode node) |
override void | OnSave (ConfigNode node) |
void | SetTime (float newTime) |
Changes the time of the audio source. More... | |
Public Member Functions inherited from EffectBehaviour | |
virtual void | OnEvent (int transformIdx) |
virtual void | OnEvent (float power, int transformIdx) |
Static Public Member Functions | |
static void | SetSourceVolume (AudioSource source, float volumeSet, AudioFX.AudioChannel channel) |
Static Public Member Functions inherited from EffectBehaviour | |
static void | AddParticleEmitter (KSPParticleEmitter emitter) |
static void | AddParticleEmitter (ParticleSystem emitter) |
static void | OffsetParticles (Vector3d offset) |
static void | RemoveParticleEmitter (KSPParticleEmitter emitter) |
static void | RemoveParticleEmitter (ParticleSystem emitter) |
Public Attributes | |
AudioChannel | channel = AudioChannel.Ship |
string | clip = "" |
bool | loop = false |
float | maxVolumeDistance = 500f |
FXCurve | pitch = new FXCurve("pitch", 1f) |
int | polyphony = 1 |
FXCurve | volume = new FXCurve("volume", 1f) |
Public Attributes inherited from EffectBehaviour | |
string | effectName = "" |
Part | hostPart |
string | instanceName = "" |
enum AudioFX.AudioChannel |
|
inlinevirtual |
Reimplemented from EffectBehaviour.
|
inlinevirtual |
Reimplemented from EffectBehaviour.
|
inlinevirtual |
Reimplemented from EffectBehaviour.
|
inlinevirtual |
Reimplemented from EffectBehaviour.
|
inlinevirtual |
Reimplemented from EffectBehaviour.
|
inlinestatic |
|
inline |
Changes the time of the audio source.
newTime | New time to switch the audio source to. |
AudioChannel AudioFX.channel = AudioChannel.Ship |
string AudioFX.clip = "" |
bool AudioFX.loop = false |
float AudioFX.maxVolumeDistance = 500f |
int AudioFX.polyphony = 1 |