Version: Unity 6 Beta (6000.0)
LanguageEnglish
  • C#

Texture2D.ignoreMipmapLimit

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public bool ignoreMipmapLimit;

Description

This property causes a texture to ignore all texture mipmap limit settings.

When this property is true, Unity always uploads the texture to the GPU at full resolution, disregarding the active quality setting's global texture mipmap limit and texture mipmap limit group settings, even if this texture has a texture mipmap limit group set.

When this property is false, the texture respects the active quality setting's global texture mipmap limit, unless the texture is part of a mipmapLimitGroup.

When changing this property at runtime: if this causes the actual mipmap limit for this texture to change, then the texture will be reuploaded to the GPU. For an optimal workflow, set this property in the constructor or in the texture importer to immediately upload the texture with the currently active mipmap limits properly applied or ignored. If the texture has no mipmaps, this property has no effect. Note that this can only be toggled at runtime if the Texture is readable. By default, this property is set to true when created in a script, which means all mipmap levels are uploaded.

Additional resources: TextureImporter.ignoreMipmapLimit, MipmapLimitDescriptor, QualitySettings.globalTextureMipmapLimit.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961