UTexture2D::GetNumMipsAllowed

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

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. Note 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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss