UMaterialInterface::RecacheUniformExpressions

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

Windows
MacOS
Linux

Override Hierarchy

References

Module

Engine

Header

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

Include

#include "Materials/MaterialInterface.h"

Syntax

virtual void RecacheUniformExpressions
(
    bool bRecreateUniformBuffer
) const

Remarks

Re-caches uniform expressions for this material interface 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