API reference

MetaXRAcousticGeometry Class

Extends MonoBehaviour
Class that allows mesh analysis to precompute an Acoustic Geometry.

Object Data for package-static-attrib

static bool AUTO_VALIDATE[Get]
static int EnabledGeometryCount[Get]

Object Data for package-attrib

const string FILE_EXTENSION[Get]
string RelativeFilePath[Get]
If this is set, then the serialized acoustic geometry file (.xrageo) is used as the mesh data source.
This button chooses whether or not child meshes of the GameObject where the geometry script is attached are included in the acoustic geometry. This option can be used to automatically combine all meshes within an object hierarchy into a single optimized acoustic geometry. This will be faster for ray tracing and produce better quality diffraction than many smaller meshes. This is typically used for the static meshes in a scene.
The flags for how the mesh is computed.
string [] ExcludeTags[Get]
IntPtr geometryHandle[Get]
bool IsLoaded[Get]
int VertexCount[Get]
const int Success[Get]

Events

static Action OnAnyGeometryEnabled

Properties

Absolute path to the serialized mesh file that holds the preprocessed mesh geometry. This path should be absolute and somewhere inside Application.dataPath directory.
bool EnableSimplification[Get]
A button that chooses whether or not diffraction information should be computed for a mesh. This enables sound to propagate around that mesh. If disabled, no diffraction will occur around the mesh and the direct sound will be completely occluded when the source is not visible. It may be useful to only enable diffraction on large meshes (e.g. scene environment geometry), but to disable it on small props and clutter objects. This can improve the performance by reducing the total number of edges in the scene.
float MaxSimplifyError[Get]
float MinDiffractionEdgeAngle[Get]
float MinDiffractionEdgeLength[Get]
float FlagLength[Get]
int LodSelection[Get]
bool UseColliders[Get]
bool OverrideExcludeTagsEnabled[Get]
string [] OverrideExcludeTags[Get]

Object Data for package-func

bool StartInternal ( )
Call this function to create geometry handle
bool DestroyInternal ( )
bool GatherGeometryRuntime ( )
bool ReadFile ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon