SpatialAudioZone class

Sound insulation zone settings.

Annotations
  • @JsonSerializable.new(explicitToJson: true, includeIfNull: false)

Properties

audioAttenuation → double?
Sound attenuation coefficient when users inside and outside the sound insulation zone communicate. Value range: 0,1: 0: Broadcast mode. Volume and timbre do not attenuate with distance. (0,0.5): Weak attenuation. Slight attenuation of volume and timbre during transmission. Sound travels farther than in real environments. 0.5: Simulates real-world volume attenuation. Equivalent to not setting the audioAttenuation parameter. (0.5,1]: Strong attenuation (default is 1). Rapid attenuation of volume and timbre during transmission.
final
forward → List<double>?
Unit vector in the forward direction starting from position. This parameter is an array of length 3, representing the coordinates in the forward, right, and up directions.
final
forwardLength → double?
Assuming the sound insulation zone is a cube, this represents the length in the forward direction, in game engine units.
final
hashCode → int
The hash code for this object.
no setterinherited
position → List<double>?
The spatial center point of the sound insulation zone. This parameter is an array of length 3, representing the coordinates in the forward, right, and up directions.
final
Unit vector in the right direction starting from position. This parameter is an array of length 3, representing the coordinates in the forward, right, and up directions.
final
rightLength → double?
Assuming the sound insulation zone is a cube, this represents the length in the right direction, in game engine units.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
up → List<double>?
Unit vector in the upward direction starting from position. This parameter is an array of length 3, representing the coordinates in the forward, right, and up directions.
final
upLength → double?
Assuming the sound insulation zone is a cube, this represents the length in the upward direction, in game engine units.
final
zoneSetId → int?
ID of the sound insulation zone.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited