C# Class SpatialMappingCollider, InteractivePaint

Inheritance: SMBaseAbstract
Exibir arquivo Open project: OpenHID/InteractivePaint Class Usage Examples

Public Properties

Property Type Description
MeshLayer LayerMask
PhysicMaterial UnityEngine.PhysicMaterial

Protected Methods

Method Description
Awake ( ) : void
SurfaceObserver_OnDataReady ( SurfaceData bakedData, bool outputWritten, float elapsedBakeTimeSeconds ) : void

Handler for RequestMeshAsync which will be used to set the layer, material, and collision options on the resulting mesh

Private Methods

Method Description
ToggleColliders ( ) : void

Helper to update the active state of the colliders

Method Details

Awake() protected method

protected Awake ( ) : void
return void

SurfaceObserver_OnDataReady() protected method

Handler for RequestMeshAsync which will be used to set the layer, material, and collision options on the resulting mesh
protected SurfaceObserver_OnDataReady ( SurfaceData bakedData, bool outputWritten, float elapsedBakeTimeSeconds ) : void
bakedData UnityEngine.VR.WSA.SurfaceData The resulting data from the RequestMeshAsync call
outputWritten bool Whether or not the output was written
elapsedBakeTimeSeconds float How long the baking took in seconds
return void

Property Details

MeshLayer public_oe property

The layer mask to apply to the mesh.
public LayerMask MeshLayer
return LayerMask

PhysicMaterial public_oe property

Material describing the physical properties of the mesh.
public PhysicMaterial,UnityEngine PhysicMaterial
return UnityEngine.PhysicMaterial