UMaterialInterface::RecacheAllMaterialUniformExpressions

Re-caches uniform expressions for all material interfaces Set bRecreateUniformBuffer to true if uniform buffer layout will change (e.g. [FMaterial](API\Runtime\Engine\FMaterial) is being recompiled).

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

static void RecacheAllMaterialUniformExpressions
(
    bool bRecreateUniformBuffer
)

Remarks

Re-caches uniform expressions for all material interfaces Set bRecreateUniformBuffer to true if uniform buffer layout will change (e.g. FMaterial is being recompiled). In that case calling needs to use FMaterialUpdateContext to recreate the rendering state of primitives using this material.

Parameters

Parameter

Description

bRecreateUniformBuffer

true forces uniform buffer recreation.

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