C# Class SpatialMappingRenderer, InteractivePaint

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

Protected Methods

Method Description
GetDefaultLevelOfDetail ( ) : MeshLevelOfDetail

Gives the default Level of Detail for the inspector. For rendering, we default to MeshLevelOfDetail.Medium

Start ( ) : void
SurfaceObserver_OnDataReady ( SurfaceData bakedData, bool outputWritten, float elapsedBakeTimeSeconds ) : void

Handler for RequestMeshAsync which will be used to set the material on the resulting mesh

Private Methods

Method Description
ApplyRenderingSetting ( MeshRenderer r ) : void

Helper to actually apply the new render setting and material to a single MeshRenderer instance

ApplyRenderingSettingToCache ( ) : void

Helper to update the currently cached SpatialMeshObjects to the new rendering setting or material

Method Details

GetDefaultLevelOfDetail() protected method

Gives the default Level of Detail for the inspector. For rendering, we default to MeshLevelOfDetail.Medium
protected GetDefaultLevelOfDetail ( ) : MeshLevelOfDetail
return MeshLevelOfDetail

Start() protected method

protected Start ( ) : void
return void

SurfaceObserver_OnDataReady() protected method

Handler for RequestMeshAsync which will be used to set the material 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