Version: 5.6

SurfaceData

struct in UnityEngine.VR.WSA

매뉴얼로 전환

설명

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

변수

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.

생성자

SurfaceDataConstructor for conveniently filling out a SurfaceData struct.