# MeshTransform

> Contains transform information related to a tracked mesh.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.XR](/engine/6000.6/script-reference/unityengine/xr.md)
* **Assembly:** UnityEngine.XRModule
* **Implements:** [IEquatable\<MeshTransform>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public readonly struct MeshTransform : IEquatable<MeshTransform>
```

## Remarks

This struct is used by the [XRMeshSubsystem](/engine/6000.6/script-reference/unityengine/xr/xrmeshsubsystem.md) to communication information about a mesh's transform.

Additional Resources: [XRMeshSubsystem.GetUpdatedMeshTransforms](/engine/6000.6/script-reference/unityengine/xr/xrmeshsubsystem/getupdatedmeshtransforms.md)

## Constructors

| Constructor                                                                                                                                                                                   | Description                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [MeshTransform(UnityEngine.XR.MeshId@,System.UInt64,UnityEngine.Vector3@,UnityEngine.Quaternion@,UnityEngine.Vector3@)](/engine/6000.6/script-reference/unityengine/xr/meshtransform/ctor.md) | Creates a new [MeshTransform](/engine/6000.6/script-reference/unityengine/xr/meshtransform.md). |

## Properties

| Property                                                                               | Description                                               |
| -------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [MeshId](/engine/6000.6/script-reference/unityengine/xr/meshtransform/meshid.md)       | The session-unique identifier of the tracked mesh.        |
| [Position](/engine/6000.6/script-reference/unityengine/xr/meshtransform/position.md)   | The position of the mesh, relative to the session origin. |
| [Rotation](/engine/6000.6/script-reference/unityengine/xr/meshtransform/rotation.md)   | The rotation of the mesh, relative to the session origin. |
| [Scale](/engine/6000.6/script-reference/unityengine/xr/meshtransform/scale.md)         | The scale of the mesh, relative to the session origin.    |
| [Timestamp](/engine/6000.6/script-reference/unityengine/xr/meshtransform/timestamp.md) | The timestamp associated with this transform.             |
