Version: 2022.3

MeshGenerationResult

struct in UnityEngine.XR

切换到手册

描述

包含与生成的网格相关的事件信息。

XRMeshSubsystem 使用此结构来提供有关 XRMeshSubsystem.GenerateMeshAsync 的结果的信息。

变量

Attributes已写入到 MeshGenerationResult.Mesh 的 MeshVertexAttributes。
Mesh如果生成成功,则表明数据已写入此 Mesh。
MeshCollider如果生成成功,则表明物理数据已写入此 MeshCollider。
MeshId生成的被跟踪网格的 MeshId。
PositionThe position associated with the generated mesh relative to the session origin.
RotationThe rotation associated with the generated mesh relative to the session origin.
ScaleThe scale associated with the generated mesh relative to the session origin.
Status网格生成任务的 MeshGenerationStatus。
TimestampThe timestamp associated with the generated mesh.