# MeshGenerationResult

> Contains event information related to a generated mesh.

## Definition

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

```csharp
public struct MeshGenerationResult : IEquatable<MeshGenerationResult>
```

## Remarks

This struct is used by the [XRMeshSubsystem](/engine/6000.7/script-reference/unityengine/xr/xrmeshsubsystem.md) to provide information about the result of [XRMeshSubsystem.GenerateMeshAsync](/engine/6000.7/script-reference/unityengine/xr/xrmeshsubsystem/generatemeshasync.md).

## Properties

| Property                                                                                            | Description                                                                                                                                                                                                                           |
| --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Attributes](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/attributes.md)     | The [MeshVertexAttributes](/engine/6000.7/script-reference/unityengine/xr/meshvertexattributes.md) that were written to the [MeshGenerationResult.Mesh](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/mesh.md). |
| [Mesh](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/mesh.md)                 | If the generation was successful, data has been written to this [MeshGenerationResult.Mesh](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/mesh.md).                                                             |
| [MeshCollider](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/meshcollider.md) | If the generation was successful, physics data has been written to this [MeshGenerationResult.MeshCollider](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/meshcollider.md).                                     |
| [MeshId](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/meshid.md)             | The [MeshGenerationResult.MeshId](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/meshid.md) of the tracked mesh that was generated.                                                                              |
| [Position](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/position.md)         | The position associated with the generated mesh relative to the session origin.                                                                                                                                                       |
| [Rotation](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/rotation.md)         | The rotation associated with the generated mesh relative to the session origin.                                                                                                                                                       |
| [Scale](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/scale.md)               | The scale associated with the generated mesh relative to the session origin.                                                                                                                                                          |
| [Status](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/status.md)             | The [MeshGenerationStatus](/engine/6000.7/script-reference/unityengine/xr/meshgenerationstatus.md) of the mesh generation task.                                                                                                       |
| [Timestamp](/engine/6000.7/script-reference/unityengine/xr/meshgenerationresult/timestamp.md)       | The timestamp associated with the generated mesh.                                                                                                                                                                                     |
