Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

SurfaceData Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public SurfaceData(XR.WSA.SurfaceId _id, MeshFilter _outputMesh, XR.WSA.WorldAnchor _outputAnchor, MeshCollider _outputCollider, float _trianglesPerCubicMeter, bool _bakeCollider);

Parameters

_idID for the surface in question.
_outputMeshMeshFilter to write Mesh data to.
_outputAnchorWorldAnchor receiving the anchor point for the surface.
_outputColliderMeshCollider to write baked physics data to (optional).
_trianglesPerCubicMeterRequested resolution for the computed Mesh. Actual resolution may be less than this value.
_bakeColliderSet to true if collider baking is/has been requested.

Description

Constructor for conveniently filling out a SurfaceData struct.

Did you find this page useful? Please give it a rating: