# FMaterialCachedExpressionData::UpdateForExpressions and IsPropertyConnected 

**URL:** <https://forums.unrealengine.com/t/fmaterialcachedexpressiondata-updateforexpressions-and-ispropertyconnected/2842079>\
**Category:** Rendering\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [July 23, 2026, 9:23am UTC](https://forums.unrealengine.com/t/fmaterialcachedexpressiondata-updateforexpressions-and-ispropertyconnected/2842079 "2026-07-23T09:23:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 23, 2026, 9:23am UTC](https://forums.unrealengine.com/t/fmaterialcachedexpressiondata-updateforexpressions-and-ispropertyconnected/2842079/1 "2026-07-23T09:23:38Z")

</div>

FMaterialCachedExpressionData::UpdateForExpressions iterates on all expressions, even for those that are not enabled in a material instance or not even connected to output.

This will enable features (such as WPO) that wouldn’t be used since the connection may be on a disconnected path, so this can be create performance issues and debugging headache.

I see a specific comment in IsGBufferLayoutSupportedForMaterial: “FMaterialShaderParameters::bHasVertexPositionOffsetConnected means that the material \*could\* have WPO”.

So I think this is not really clear, for your commenter too.

In other parts, UMaterial::IsPropertyConnected is considered as “is property used and different from the usual default”, such as FMaterialResource::IsNonmetal (the connected constant may be a 1 on Metallic pin).

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 23, 2026, 9:23am UTC](https://forums.unrealengine.com/t/fmaterialcachedexpressiondata-updateforexpressions-and-ispropertyconnected/2842079/2 "2026-07-23T09:23:41Z")

</div>

**Steps to Reproduce**  
Create a new material. Create a SetMaterialAttributes node (leave it disconnected from material output) with WorldPositionOutput pin and connect to it a Time node.

UMaterial::HasVertexPositionOffsetConnected returns true, even if WorldPositionOutput is not connected to output.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Petrockets](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/petrockets/32/1142518_2.png) [@Petrockets](https://forums.unrealengine.com/u/Petrockets)\
**Post date:** [August 25, 2026, 11:43pm UTC](https://forums.unrealengine.com/t/fmaterialcachedexpressiondata-updateforexpressions-and-ispropertyconnected/2842079/3 "2026-08-25T23:43:01Z")

</div>

Hello,

Apologies for the delay. I’ve verified this issue still exists in latest and created the following issue which should be visible soon for tracking [https://issues.unrealengine.com/issue/UE\-393669](https://issues.unrealengine.com/issue/UE%5C-393669)

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 18, 2026, 7:31am UTC](https://forums.unrealengine.com/t/fmaterialcachedexpressiondata-updateforexpressions-and-ispropertyconnected/2842079/4 "2026-09-18T07:31:37Z")

</div>

The issue is relevant for decals too: attributes writing is enabled if properties are connected (function ComputeDecalBlendDesc).

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 18, 2026, 8:34am UTC](https://forums.unrealengine.com/t/fmaterialcachedexpressiondata-updateforexpressions-and-ispropertyconnected/2842079/5 "2026-09-18T08:34:01Z")

</div>

In 5.8 the already bugged IsPropertyConnected code became worser thanks to the additional “checks” made in FMaterialCachedExpressionData::DoPostAnalyzeChecks. I Initially thought that the issue is the new r.Material.PedanticErrorChecksEnabled, but the bug following FOR does not check for its value. If a material used a static switch with a material attributes on a branch but a non material attributes on the other it is not considered an error as a mismathed typed connection: but it forces all material attributes to be “used” and “connected”. the static switch can be unconnected to the graph, since the code just iterates on every nodes.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Petrockets](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/petrockets/32/1142518_2.png) [@Petrockets](https://forums.unrealengine.com/u/Petrockets)\
**Post date:** [September 18, 2026, 7:27pm UTC](https://forums.unrealengine.com/t/fmaterialcachedexpressiondata-updateforexpressions-and-ispropertyconnected/2842079/6 "2026-09-18T19:27:40Z")

</div>

Thanks, I’ve updated the issue with that data.

[Attachment Removed]
