MeshTransform
Contains transform information related to a tracked mesh.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.XR
- Assembly: UnityEngine.XRModule
- Implements: IEquatable<MeshTransform>
public readonly struct MeshTransform : IEquatable<MeshTransform>
Remarks
This struct is used by the XRMeshSubsystem to communication information about a mesh's transform.
Additional Resources: XRMeshSubsystem.GetUpdatedMeshTransforms
Constructors
Constructor | Description |
|---|---|
| MeshTransform(UnityEngine.XR.MeshId@,System.UInt64,UnityEngine.Vector3@,UnityEngine.Quaternion@,UnityEngine.Vector3@) | Creates a new MeshTransform. |
Properties
Property | Description |
|---|---|
| MeshId | The session-unique identifier of the tracked mesh. |
| Position | The position of the mesh, relative to the session origin. |
| Rotation | The rotation of the mesh, relative to the session origin. |
| Scale | The scale of the mesh, relative to the session origin. |
| Timestamp | The timestamp associated with this transform. |