UMaterialInstance::UpdateStaticPermutation

Sets new static parameter overrides on the instance and recompiles the static permutation resources if needed.

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,
    FMaterialUpdateContext * MaterialUpdateContext
)

Remarks

Sets new static parameter overrides on the instance and recompiles the static permutation resources if needed. Can be passed either a minimal parameter set (overridden parameters only) or the entire set generated by GetStaticParameterValues().

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