Class SoundEffect
public sealed class SoundEffect : ISoundEffect
- Inheritance
-
SoundEffect
- Implements
- Inherited Members
Properties
EntityId
The entity id that the sound originated from.
public int? EntityId { get; init; }
Property Value
- int?
Remarks
Null if SoundPosition has a value.
FixedRange
The fixed range of the sound.
public float? FixedRange { get; init; }
Property Value
Pitch
public required float Pitch { get; init; }
Property Value
Remarks
Must be a value between 0.5 and 2.0
Seed
Seed used to pick sound variant.
public required long Seed { get; init; }
Property Value
SoundCategory
The category that this sound will be played from.
public required SoundCategory SoundCategory { get; init; }
Property Value
SoundId
public required string SoundId { get; init; }
Property Value
SoundName
public string? SoundName { get; init; }
Property Value
SoundPosition
The position of where the sound originated from.
public SoundPosition? SoundPosition { get; init; }
Property Value
Remarks
Null if EntityId has a value.
Volume
public required float Volume { get; init; }
Property Value
Remarks
Must be a value between 0.0 and 1.0