기술 자료

Unity Engine

Unity Engine

GenerateMips()

Generate mipmap levels of a render texture.
읽는 시간 1분최근 업데이트: 한 달 전

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.