UMaterialInterface::SetForceMipLevelsToBeResident

Force the streaming system to disregard the normal logic for the specified duration and instead always load all mip-levels for all textures used by this material.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInterface.h

Include

#include "Materials/MaterialInterface.h"

Source

/Engine/Source/Runtime/Engine/Private/Materials/MaterialInterface.cpp

Syntax

virtual void SetForceMipLevelsToBeResident
(
    bool OverrideForceMiplevelsToBeResident,
    bool bForceMiplevelsToBeResidentValue,
    float ForceDuration,
    int32 CinematicTextureGroups,
    bool bFastResponse
)

Remarks

Force the streaming system to disregard the normal logic for the specified duration and instead always load all mip-levels for all textures used by this material.

Parameters

Parameter

Description

OverrideForceMiplevelsToBeResident

Whether to use (true) or ignore (false) the bForceMiplevelsToBeResidentValue parameter.

bForceMiplevelsToBeResidentValue

true forces all mips to stream in. false lets other factors decide what to do with the mips.

ForceDuration

Number of seconds to keep all mip-levels in memory, disregarding the normal priority logic. Negative value turns it off.

CinematicTextureGroups

Bitfield indicating texture groups that should use extra high-resolution mips

bFastResponse

USE WITH EXTREME CAUTION! Fast response textures incur sizable GT overhead and disturb streaming metric calculation. Avoid whenever possible.

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