API reference

MetaXRAcousticSettings Class

Extends ScriptableObject
This class exposes controls for the Meta XR Acoustics SDK at a project level You can use this class to programmatically control the acoustics settings for the entire project at runtime. Note any changes made to this data struct will not be written do disk and thus not persist across game loads. Any settings that intended to persist across game loads should be done in the project settings window under the "Meta XR Acoustics" panel. Use MetaXRAcousticSettings.Instance to gain access to the singleton instance of the global project settings.

Internal Fields

AcousticFileRootDir : const string
Signature
const string MetaXRAcousticSettings.AcousticFileRootDir

Properties

AcousticModel : AcousticModel
[Get][Set]
The reflections engine used during runtime.
Signature
AcousticModel MetaXRAcousticSettings.AcousticModel
DiffractionEnabled : bool
[Get][Set]
When enabled and using geometry, all spatailized AudioSources will diffract (propagate around corners and obstructions)
Signature
bool MetaXRAcousticSettings.DiffractionEnabled
ExcludeTags : string []
[Get][Set]
Geometry will exclude children with these tags.
Signature
string [] MetaXRAcousticSettings.ExcludeTags
[Get]
The singleton instance of the project settings. This instance is project wide and will be automatically created on first access if needed. Any settings that are intended to persist across game loads should be done in the project settings window under the "Meta XR Acoustics" panel. See MetaXRAcousticSettings for settings values.
Signature
MetaXRAcousticSettings MetaXRAcousticSettings.Instance
MapBakeWriteGeo : bool
[Get][Set]
When you bake an acoustic map, also bake all the acoustic geometry files.
Signature
bool MetaXRAcousticSettings.MapBakeWriteGeo

Internal Methods

ApplyAllSettings ()
Provide all current settings to the native DLL.
Signature
void MetaXRAcousticSettings.ApplyAllSettings()
Returns
void