Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials > API/Runtime/Engine/Materials/UMaterialInterface
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 |
UFUNCTION (BlueprintCallable, Category="Rendering|Material")
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
| Name | 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. |