# \[Feature Request\] Generic static switch for materials.

**URL:** <https://forums.unrealengine.com/t/feature-request-generic-static-switch-for-materials/140202>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine\
**Created:** [March 22, 2020, 12:49pm UTC](https://forums.unrealengine.com/t/feature-request-generic-static-switch-for-materials/140202 "2020-03-22T12:49:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deadlineproof](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deadlineproof](https://forums.unrealengine.com/u/Deadlineproof)\
**Post date:** [March 22, 2020, 12:49pm UTC](https://forums.unrealengine.com/t/feature-request-generic-static-switch-for-materials/140202/1 "2020-03-22T12:49:37Z")

</div>

I really feel the lack of a Material generic static switch with custom labels for more flexible and better editable master materials.  
It may be shown as a drop down list and makes able to support any type ( scalar, texture object , v3 etc) and to name the options.  
The type will get inferred by the first link and enforced for the others.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [September 7, 2021, 3:42pm UTC](https://forums.unrealengine.com/t/feature-request-generic-static-switch-for-materials/140202/2 "2021-09-07T15:42:18Z")

</div>

I was going to make a new thread to request this feature but I found this one so, bump!

I’ve actually had this feature on previous work projects (implemented by our programming team by request) and I can’t stress enough how useful a Static Switch with multiple label-able options is, especially when it comes to creating complex master materials with lots of options.  
because really, having On/Off switches for multi-case handling doesn’t cut it

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [March 14, 2022, 8:14pm UTC](https://forums.unrealengine.com/t/feature-request-generic-static-switch-for-materials/140202/3 "2022-03-14T20:14:32Z")

</div>

Gonna shamelessly bump this. Static Switches as chains of if/elseif/elseif/…/else can get such a vast improvement with this  
Maybe if it gains some interest…

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [March 28, 2022, 2:49pm UTC](https://forums.unrealengine.com/t/feature-request-generic-static-switch-for-materials/140202/4 "2022-03-28T14:49:41Z")

</div>

So I realized Material nodes can be created from C++ as plugins (no need to modify the engine) which pushed me to attempt to implement this myself.  
Sadly only UMaterialExpression is exposed as ENGINE\_API but none of its subclasses are exposed, so we cannot do material parameters as plugins due to the way material parameter types are hardcoded.

Would be reeeeally nice if this small but very significant QOL improvement could get some attention, or at least getting a more flexible way to create new material expressions (including material parameters)

Please @Tim_Sweeney🥺
