文档

Unity Engine

Unity Engine

TryGetMeshInfos(List<MeshInfo>)

Gets information about every Mesh the system currently tracks.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public bool TryGetMeshInfos(List<MeshInfo> meshInfosOut)

Parameters

meshInfosOut

A List of MeshInfos to be filled. Passing null will throw an ArgumentNullException.

Returns

Type

Description

boolTrue if the List was populated.

Remarks

Use this to determine which meshes have been added, changed, or removed.
Note: This method provides state changes since the last time the method was called. Typically, a single system should manage this information.
Additional Resources: XRMeshSubsystem.GenerateMeshAsync