UMaterialInstance::UpdateStaticPermutation

Sets new static parameter overrides on the instance and recompiles the static permutation resources if needed (can be forced with bForceRecompile).

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Materials/MaterialInstance.h"

Source

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

Syntax

void UpdateStaticPermutation
(
    const FStaticParameterSet & NewParameters,
    FMaterialInstanceBasePropertyOverrides & NewBasePropertyOverrides,
    const bool bForceStaticPermutationUpdate,
    FMaterialUpdateContext * MaterialUpdateContext
)

Remarks

Sets new static parameter overrides on the instance and recompiles the static permutation resources if needed (can be forced with bForceRecompile). Can be passed either a minimal parameter set (overridden parameters only) or the entire set generated by GetStaticParameterValues(). Can also trigger recompile based on new set of FMaterialInstanceBasePropertyOverrides

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