API reference

MetaXRAcousticMaterial Class

Extends MonoBehaviour, Meta.XR.Acoustics.IMaterialDataProvider
This class is used for to create or edit an Acoustic Material.

Fields

This holds either a material preset or the user's custom material data.
Signature
Meta.XR.Acoustics.MaterialData MetaXRAcousticMaterial.Data

Internal Fields

Color : Color
Signature
Color MetaXRAcousticMaterial.Color
This is a reference to the material properties the user has edited.
Signature
Meta.XR.Acoustics.MaterialData MetaXRAcousticMaterial.customData

Properties

Properties : MetaXRAcousticMaterialProperties
[Get][Set]
Signature
MetaXRAcousticMaterialProperties MetaXRAcousticMaterial.Properties

Internal Methods

ApplyMaterialProperties ()
Signature
bool MetaXRAcousticMaterial.ApplyMaterialProperties()
Returns
bool
CopyPresetToCustomData ( preset )
Signature
void MetaXRAcousticMaterial.CopyPresetToCustomData(MetaXRAcousticMaterialProperties.BuiltinPreset preset)
Parameters
preset: MetaXRAcousticMaterialProperties.BuiltinPreset
Returns
void
DestroyInternal ()
Signature
void MetaXRAcousticMaterial.DestroyInternal()
Returns
void
StartInternal ()
Signature
bool MetaXRAcousticMaterial.StartInternal()
Returns
bool

Internal Static Methods

CreateMaterialNativeHandle ( data )
Signature
static IntPtr MetaXRAcousticMaterial.CreateMaterialNativeHandle(Meta.XR.Acoustics.MaterialData data=null)
Returns
IntPtr
DestroyMaterialNativeHandle ( handle )
Signature
static void MetaXRAcousticMaterial.DestroyMaterialNativeHandle(IntPtr handle)
Parameters
handle: IntPtr
Returns
void