XRMeshSubsystem

class in UnityEngine.XR

/

다음으로부터 상속:IntegratedSubsystem

매뉴얼로 전환

설명

Allows external systems to provide dynamic meshes to Unity.

The XRMeshSubsystem enables external systems to provide dynamic meshes to Unity. The meshes are processed on background threads, including physics baking, so as not to block the main thread during execution. This is useful for that provide dynamic meshes during runtime, such as spatially-aware AR devices.

변수

meshDensityCall this function to request a change in the density of the generated Meshes. Unity gives the density level as a value within the range 0.0 to 1.0 and the provider determines how to map that value to their implementation. Setting this value does not guarantee an immediate change in the density of any currently created Mesh and may only change the density for new or updated Meshes.

Public 함수

GenerateMeshAsyncRequests the generation of the Mesh with MeshId meshId. Unity calls onMeshGenerationComplete when generation finishes.
SetBoundingVolumeSet the bounding volume to restrict the space in which Unity generates and tracks Meshes.The bounding volume is an Axis Aligned Bounding Box (AABB) centered at the origin and extends in each dimension as defined in extents.The units of measurement depend on the provider.
TryGetMeshInfosGets information about every Mesh the system currently tracks.

상속된 멤버

변수

runningWhether or not the subsystem is running.

Public 함수

DestroyDestroys this instance of a subsystem.
StartStarts an instance of a subsystem.
StopStops an instance of a subsystem.