Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetMeshInfos(List<MeshInfo>)

Gets information about every Mesh the system currently tracks.
Read time 1 minuteLast updated 13 days ago

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