Version: 2022.1

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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961