API reference

MetaXRAudioRoomAcousticProperties Class

Extends MonoBehaviour
Class that provides easy control over the shoebox room simulation.
One of these classes should be present in any scene you wish the control the parameters of shoebox reverberation. Multiple instantiations of this class within one scene will result in undefined behavior.

Fields

backMaterial : MaterialPreset
Material preset of the back wall of the room model.
Signature
MaterialPreset MetaXRAudioRoomAcousticProperties.backMaterial
ceilingMaterial : MaterialPreset
Material preset of the ceiling of the room model.
Signature
MaterialPreset MetaXRAudioRoomAcousticProperties.ceilingMaterial
clutterFactor : float
Current room clutter factor.
This is a simplified interface to the native, frequency-dependent clutter factor. The singular value represented here is transformed into a the frequency-dependent clutter factor of MetaXRAudioNativeInterface::NativeInterface::SetRoomClutterFactor through means of the following formula:
factor = clutterFactor;
for (int band = kAudioBandCount - 1; band >= 0; --band)
{
    clutterFactorBands[band] = factor;
    factor *= 0.5f; // clutter has less impact on low frequencies
}
Signature
float MetaXRAudioRoomAcousticProperties.clutterFactor
depth : float
Depth of the room, in meters.
Signature
float MetaXRAudioRoomAcousticProperties.depth
floorMaterial : MaterialPreset
Material preset of the floor of the room model.
Signature
MaterialPreset MetaXRAudioRoomAcousticProperties.floorMaterial
frontMaterial : MaterialPreset
Material preset of the front wall of the room model.
Signature
MaterialPreset MetaXRAudioRoomAcousticProperties.frontMaterial
height : float
Height of the room, in meters.
Signature
float MetaXRAudioRoomAcousticProperties.height
leftMaterial : MaterialPreset
Material preset of the left wall of the room model.
Signature
MaterialPreset MetaXRAudioRoomAcousticProperties.leftMaterial
lockPositionToListener : bool
Whether to center the room model on the listener or position its center in world space.
If set to false, the room model's center will be placed at the transform position.
Signature
bool MetaXRAudioRoomAcousticProperties.lockPositionToListener
rightMaterial : MaterialPreset
Material preset of the right wall of the room model.
Signature
MaterialPreset MetaXRAudioRoomAcousticProperties.rightMaterial
width : float
Width of the room, in meters.
Signature
float MetaXRAudioRoomAcousticProperties.width

Inner Enum

MaterialPreset Enum

Enum representing material presets.

Enumeration Constants

MemberValue
AcousticTile
0
Brick
BrickPainted
Cardboard
Carpet
CarpetHeavy
CarpetHeavyPadded
CeramicTile
Concrete
ConcreteRough
ConcreteBlock
ConcreteBlockPainted
Curtain
Foliage
Glass
GlassHeavy
Grass
Gravel
GypsumBoard
Marble
Mud
PlasterOnBrick
PlasterOnConcreteBlock
Rubber
Soil
SoundProof
Snow
Steel
Stone
Vent
Water
WoodThin
WoodThick
WoodFloor
WoodOnConcrete
MetaDefault