C# Class SpatialMappingRenderer, InteractivePaint

Inheritance: SMBaseAbstract
Afficher le fichier Open project: OpenHID/InteractivePaint Class Usage Examples

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

Start() protected méthode

protected Start ( ) : void
Résultat void

SurfaceObserver_OnDataReady() protected méthode

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
Résultat void