Navigation
Unreal Engine C++ API Reference > 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 |
static void RecacheAllMaterialUniformExpressions
&40;
bool bRecreateUniformBuffer
&41;
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
Name | Description |
---|---|
bRecreateUniformBuffer | true forces uniform buffer recreation. |