Version: 5.5 (switch to 5.6b)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

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(_id: VR.WSA.SurfaceId, _outputMesh: MeshFilter, _outputAnchor: VR.WSA.WorldAnchor, _outputCollider: MeshCollider, _trianglesPerCubicMeter: float, _bakeCollider: bool)
public SurfaceData(VR.WSA.SurfaceId _id, MeshFilter _outputMesh, VR.WSA.WorldAnchor _outputAnchor, MeshCollider _outputCollider, float _trianglesPerCubicMeter, bool _bakeCollider);

Parameters

_id ID for the surface in question.
_outputMesh MeshFilter to write Mesh data to.
_outputAnchor WorldAnchor receiving the anchor point for the surface.
_outputCollider MeshCollider to write baked physics data to (optional).
_trianglesPerCubicMeter Requested resolution for the computed Mesh. Actual resolution may be less than this value.
_bakeCollider Set to true if collider baking is/has been requested.

Description

Constructor for conveniently filling out a SurfaceData struct.