# MeshModificationContext

> Per-invocation context passed to a MeshModificationCallback.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public ref struct MeshModificationContext
```

## Properties

| Property                                                                                             | Description                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [draws](/engine/6000.6/script-reference/unityengine/uielements/meshmodificationcontext/draws.md)     | The generated draws for [\_element](/engine/6000.6/script-reference/unityengine/uielements/meshmodificationcontext/element.md), in render order. |
| [element](/engine/6000.6/script-reference/unityengine/uielements/meshmodificationcontext/element.md) | The element whose draws this invocation is processing.                                                                                           |

## Methods

| Method                                                                                                                             | Description                                                                                                                                                                                                        |
| ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [AddMeshModificationJob](/engine/6000.6/script-reference/unityengine/uielements/meshmodificationcontext/addmeshmodificationjob.md) | Add a user-scheduled job to this element's post-processing dependency chain.                                                                                                                                       |
| [AllocateUIMesh](/engine/6000.6/script-reference/unityengine/uielements/meshmodificationcontext/allocateuimesh.md)                 | Allocates a fresh temporary [UIMesh](/engine/6000.6/script-reference/unityengine/uielements/uimesh.md) sized for `vertexCount` vertices and `indexCount` indices, with slices for the requested extras `channels`. |
