API reference

MetaXRAcousticMaterialMapping Class

Extends ScriptableObject
This class provides a way of mapping Unity PhysicMaterials to MetaXRAcousticMaterials.

Internal Fields

fallbackMaterial : MetaXRAcousticMaterialProperties
The fallback material to use when there is no mapping for a given PhysicMaterial.
Signature
MetaXRAcousticMaterialProperties MetaXRAcousticMaterialMapping.fallbackMaterial
mapping : Pair []
The array of pairs that map Unity PhysicMaterials to MetaXRAcousticMaterialProperties.
Signature
Pair [] MetaXRAcousticMaterialMapping.mapping

Properties

Instance : MetaXRAcousticMaterialMapping
[Get]
Signature
MetaXRAcousticMaterialMapping MetaXRAcousticMaterialMapping.Instance

Internal Methods

findAcousticMaterial ( pmat )
Signature
MetaXRAcousticMaterialProperties MetaXRAcousticMaterialMapping.findAcousticMaterial(PhysicMaterial pmat)
Parameters
pmat: PhysicMaterial
Returns
MetaXRAcousticMaterialProperties

Inner Class

Pair Class

Internal Fields

acousticMaterial : MetaXRAcousticMaterialProperties
The MetaXRAcousticMaterialProperties to be connected with the selected Physic Material.
Signature
MetaXRAcousticMaterialProperties MetaXRAcousticMaterialMapping.Pair.acousticMaterial
physicMaterial : PhysicMaterial
The Unity PhysicMaterial to be mapped to be connected with the selected MetaXRAcousticMaterial.
Signature
PhysicMaterial MetaXRAcousticMaterialMapping.Pair.physicMaterial