Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInterface
Description
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.
| Name | RecacheAllMaterialUniformExpressions |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInterface.h |
| Include Path | #include "Materials/MaterialInterface.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInterface.cpp |
static void RecacheAllMaterialUniformExpressions
(
bool bRecreateUniformBuffer
)
Parameters
| Name | Remarks |
|---|---|
| bRecreateUniformBuffer | true forces uniform buffer recreation. |