Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GenerateMips()

Generate mipmap levels of a render texture.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
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 set to true), and automatic mip generation turned off (RenderTexture.autoGenerateMips 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.