Version: 2022.3
LanguageEnglish
  • C#

MeshTransform

struct in UnityEngine.XR

/

Implemented in:UnityEngine.XRModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Contains transform information related to a tracked mesh.

This struct is used by the XRMeshSubsystem to communication information about a mesh's transform.

Additional resources: XRMeshSubsystem.GetUpdatedMeshTransforms

Properties

MeshIdThe session-unique identifier of the tracked mesh.
PositionThe position of the mesh, relative to the session origin.
RotationThe rotation of the mesh, relative to the session origin.
ScaleThe scale of the mesh, relative to the session origin.
TimestampThe timestamp associated with this transform.

Constructors

MeshTransformCreates a new MeshTransform.