# MeshOptimizationFlags

> Options to control the optimization of mesh data during asset import.

## Definition

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

```csharp
[Flags]
public enum MeshOptimizationFlags
```

## Fields

| Value                                                                                             | Description                                                                                                                 |
| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| [Everything](/engine/6000.7/script-reference/unityeditor/meshoptimizationflags/everything.md)     | Perform maximum optimization of the mesh data, enables all optimization options.                                            |
| [PolygonOrder](/engine/6000.7/script-reference/unityeditor/meshoptimizationflags/polygonorder.md) | Optimize the order of polygons in the mesh to make better use of the GPUs internal caches to improve rendering performance. |
| [VertexOrder](/engine/6000.7/script-reference/unityeditor/meshoptimizationflags/vertexorder.md)   | Optimize the order of vertices in the mesh to make better use of the GPUs internal caches to improve rendering performance. |
