# GetStaticComponentMaskParameterValue returns the value for Static Switch Parameter 

**URL:** <https://forums.unrealengine.com/t/getstaticcomponentmaskparametervalue-returns-the-value-for-static-switch-parameter/2724107>\
**Category:** Asset Creation\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [April 22, 2026, 1:02pm UTC](https://forums.unrealengine.com/t/getstaticcomponentmaskparametervalue-returns-the-value-for-static-switch-parameter/2724107 "2026-04-22T13:02:27Z")\
**Posts on this page:** 2\
**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:** [April 22, 2026, 1:02pm UTC](https://forums.unrealengine.com/t/getstaticcomponentmaskparametervalue-returns-the-value-for-static-switch-parameter/2724107/1 "2026-04-22T13:02:27Z")

</div>

Hello,

It looks like **UMaterialInterface::GetStaticComponentMaskParameterValue** is getting the parameter value from the static switch list instead of from the **StaticComponentMask** list

GitHub branch 5.8 still looks to have this issue.

[MaterialInterface.cpp#L557](https://github.com/EpicGames/UnrealEngine/blob/2d3a253201578aeabcffe55031213121f899f3ba/Engine/Source/Runtime/Engine/Private/Materials/MaterialInterface.cpp#L557)

The solution might be simply changing **EMaterialParameterType::StaticSwitch** to instead be **EMaterialParameterType::StaticComponentMask** in the aforementioned function.

Cheers

[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:** [April 24, 2026, 6:46pm UTC](https://forums.unrealengine.com/t/getstaticcomponentmaskparametervalue-returns-the-value-for-static-switch-parameter/2724107/2 "2026-04-24T18:46:14Z")

</div>

Hello,

Thank you for reporting this bug and fix. I’ve created the following issue for tracking which should be visible publicly soon [https://issues.unrealengine.com/issue/UE\-376199](https://issues.unrealengine.com/issue/UE%5C-376199)

[Attachment Removed]
