Version: 2020.1
LanguageEnglish
  • C#

SurfaceData

struct in UnityEngine.XR.WSA

/

Implemented in:UnityEngine.VRModule

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

Description

SurfaceData is a container struct used for requesting baked spatial mapping data and receiving that data once baked.

Properties

bakeColliderSet this field to true when requesting data to bake collider data. This field will be set to true when receiving baked data if it was requested. Setting this field to true requires that a valid outputCollider is also specified.
idThis is the ID for the surface to be baked or the surface that was baked and being returned to the user.
outputAnchorThis WorldAnchor is used to lock the surface into place relative to real world objects. It will be filled in when calling RequestMeshAsync to generate data for a surface and returned with the SurfaceDataReadyDelegate.
outputColliderThis MeshCollider will receive the baked physics mesh prepared by the system when requesting baked surface data through RequestMeshAsync. The MeshCollider is returned in the SurfaceDataReadyDelegate for those users requiring advanced workflows.
outputMeshThis MeshFilter will receive the baked mesh prepared by the system when requesting baked surface data. The MeshFilter is returned in the SurfaceDataReadyDelegate for those users requiring advanced workflows.
trianglesPerCubicMeterThis value controls the basic resolution of baked mesh data and is returned with the SurfaceDataReadyDelegate. The device will deliver up to this number of triangles per cubic meter.

Constructors

SurfaceDataConstructor for conveniently filling out a SurfaceData struct.

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