AudioEmitterUse#
The Audio Emitter component: the Sound an object plays while it is active, and its extra level and pitch.
public sealed record AudioEmitterUse(SoundAsset? Sound, bool PlayOnStart = true, float VolumeDb = 0, float PitchCents = 0)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Sound | SoundAsset? | get; init; | required |
PlayOnStart | bool | get; init; | true |
VolumeDb | float | get; init; | 0 |
PitchCents | float | get; init; | 0 |
Members: MaxDistance · MinDistance · SequenceId · Shared
MaxDistance#
public float MaxDistance { get; init; }Initial value: 40
MinDistance#
public float MinDistance { get; init; }Initial value: 2
SequenceId#
public string? SequenceId { get; init; }Shared#
public bool Shared { get; init; }Every emitter of this Sound with Shared on plays one voice, heard from each of them (lights on one circuit, a row of machines): one voice however many there are, each still heard from where it is.
Related types#
Source#
- SoundAsset.cs