UTexture2D::GetNumMipsAllowed

Calculates the maximum number of mips the engine allows to be loaded for this texture.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture2D.h

Include

#include "Engine/Texture2D.h"

Source

/Engine/Source/Runtime/Engine/Private/Texture2D.cpp

Syntax

int32 GetNumMipsAllowed
(
    bool bIgnoreMinResidency
) const

Remarks

Calculates the maximum number of mips the engine allows to be loaded for this texture. The cinematic mips will be considered as loadable, streaming enabled or not.

that in the cooking process, mips smaller than the min residency count can be stripped out by the cooker.

Returns

The maximum allowed number mips for this texture.

Parameters

Parameter

Description

bIgnoreMinResidency

Whether to ignore min residency limitations.