Version: 2022.3
LanguageEnglish
  • C#

QualitySettings.SetTextureMipmapLimitSettings

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

Switch to Manual

Declaration

public static void SetTextureMipmapLimitSettings(string groupName, TextureMipmapLimitSettings textureMipmapLimitSettings);

Parameters

groupName Name of the texture mipmap limit group to modify.
textureMipmapLimitSettings The new texture mipmap limit settings to apply.

Description

Applies new TextureMipmapLimitSettings to the indicated texture mipmap limit group.

Throws an exception if Unity cannot find groupName.

At run time, if TextureMipmapLimitSettings.limitBias corresponds to a mip level that has been stripped, Unity sets the value to the closest mip level that has not been stripped. For additional information regarding mipmap stripping, see PlayerSettings.mipStripping.

Additional resources: TextureMipmapLimitSettings, GetTextureMipmapLimitSettings.