API reference

MetaXRAcousticGeometry Class

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

Internal Fields

ExcludeTags : string []
Signature
string [] MetaXRAcousticGeometry.ExcludeTags
FILE_EXTENSION : const string
Signature
const string MetaXRAcousticGeometry.FILE_EXTENSION
FileEnabled : bool
If this is set, then the serialized acoustic geometry file (.xrageo) is used as the mesh data source.
Signature
bool MetaXRAcousticGeometry.FileEnabled
Flags : MeshFlags
The flags for how the mesh is computed.
Signature
MeshFlags MetaXRAcousticGeometry.Flags
geometryHandle : IntPtr
Signature
IntPtr MetaXRAcousticGeometry.geometryHandle
IncludeChildMeshes : bool
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.
Signature
bool MetaXRAcousticGeometry.IncludeChildMeshes
IsLoaded : bool
Signature
bool MetaXRAcousticGeometry.IsLoaded
RelativeFilePath : string
Signature
string MetaXRAcousticGeometry.RelativeFilePath
Success : const int
Signature
const int MetaXRAcousticGeometry.Success
VertexCount : int
Signature
int MetaXRAcousticGeometry.VertexCount

Internal Static Fields

AUTO_VALIDATE : bool
Signature
bool MetaXRAcousticGeometry.AUTO_VALIDATE
EnabledGeometryCount : int
Signature
int MetaXRAcousticGeometry.EnabledGeometryCount

Properties

AbsoluteFilePath : string
[Get][Set]
Absolute path to the serialized mesh file that holds the preprocessed mesh geometry. This path should be absolute and somewhere inside Application.dataPath directory.
Signature
string MetaXRAcousticGeometry.AbsoluteFilePath
EnableDiffraction : bool
[Get][Set]
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.
Signature
bool MetaXRAcousticGeometry.EnableDiffraction
EnableSimplification : bool
[Get][Set]
Signature
bool MetaXRAcousticGeometry.EnableSimplification
FlagLength : float
[Get][Set]
Signature
float MetaXRAcousticGeometry.FlagLength
LodSelection : int
[Get][Set]
Signature
int MetaXRAcousticGeometry.LodSelection
MaxSimplifyError : float
[Get][Set]
Signature
float MetaXRAcousticGeometry.MaxSimplifyError
MinDiffractionEdgeAngle : float
[Get][Set]
Signature
float MetaXRAcousticGeometry.MinDiffractionEdgeAngle
MinDiffractionEdgeLength : float
[Get][Set]
Signature
float MetaXRAcousticGeometry.MinDiffractionEdgeLength
OverrideExcludeTags : string []
[Get][Set]
Signature
string [] MetaXRAcousticGeometry.OverrideExcludeTags
OverrideExcludeTagsEnabled : bool
[Get][Set]
Signature
bool MetaXRAcousticGeometry.OverrideExcludeTagsEnabled
UseColliders : bool
[Get][Set]
Signature
bool MetaXRAcousticGeometry.UseColliders

Events

OnAnyGeometryEnabled : Action
Signature
Action MetaXRAcousticGeometry.OnAnyGeometryEnabled

Internal Methods

CreatePropagationGeometry ()
Call this function to create geometry handle
Signature
bool MetaXRAcousticGeometry.CreatePropagationGeometry()
Returns
bool
DestroyInternal ()
Signature
bool MetaXRAcousticGeometry.DestroyInternal()
Returns
bool
GatherGeometryRuntime ()
Signature
bool MetaXRAcousticGeometry.GatherGeometryRuntime()
Returns
bool
ReadFile ()
Signature
bool MetaXRAcousticGeometry.ReadFile()
Returns
bool
StartInternal ()
Signature
bool MetaXRAcousticGeometry.StartInternal()
Returns
bool

Inner Interface

ITransformVisitor Interface

Methods

visit ( transform , userData )
Signature
System.Object MetaXRAcousticGeometry.ITransformVisitor.visit(Transform transform, System.Object userData)
Parameters
transform: Transform
userData: System.Object
Returns
System.Object