# optimizeMesh

> Vertex optimization setting.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

> **Warning:**
>
> **Removed.** optimizeMesh is deprecated. Use optimizeMeshPolygons and/or optimizeMeshVertices instead.  Note that optimizeMesh false equates to optimizeMeshPolygons true and optimizeMeshVertices false while optimizeMesh true equates to both true

```csharp
public bool optimizeMesh { get; set; }
```

### Remarks

The vertices and indices will be reordered for better GPU performance. Techniques that require strict vertex ordering like mesh morphing or special particle mesh emitter effects should have this option disabled.
