Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterial
Description
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.
Virtual Inheritance
- UMaterialInterface::RecacheUniformExpressions → UMaterial::RecacheUniformExpressions
| Name | RecacheUniformExpressions |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/Material.h |
| Include Path | #include "Materials/Material.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/Material.cpp |
virtual void RecacheUniformExpressions
(
bool bRecreateUniformBuffer
) const
Parameters
| Name | Remarks |
|---|---|
| bRecreateUniformBuffer | true forces uniform buffer recreation. |