# GenerateMips()

> Generate mipmap levels of a render texture.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void GenerateMips()
```

### Remarks

Use this function to manually re-generate mipmap levels of a render texture. The render texture has to have mipmaps ([RenderTexture.useMipMap](/engine/6000.7/script-reference/unityengine/rendertexture/usemipmap.md) set to true), and automatic mip generation turned off ([RenderTexture.autoGenerateMips](/engine/6000.7/script-reference/unityengine/rendertexture/autogeneratemips.md) set to false).

On some platforms (most notably, D3D9), there is no way to manually generate render texture mip levels; in these cases this function does nothing.

Additional Resources: [RenderTexture.useMipMap](/engine/6000.7/script-reference/unityengine/rendertexture/usemipmap.md), [RenderTexture.autoGenerateMips](/engine/6000.7/script-reference/unityengine/rendertexture/autogeneratemips.md).
