# WidgetSwitcher Code not working

**URL:** <https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [January 11, 2026, 6:48am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268 "2026-01-11T06:48:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 6:48am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/1 "2026-01-11T06:48:40Z")

</div>

Hello everyone , I’m facing a problem with my blue print and actually don’t know the solution for it .

I want to change materially interactively I made 2 variations .

1- Option one its static meshes actors tagged with (Wood-1)

2- Option two its static meshes actors tagged with (Wood-2)

at the start of widget I bring all actors of class with tag .

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/2/9220b98e5440f7778c7e48e1b90dc57dd8d1b647.png)

then i do the code on my widget switcher for the items .

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/5/b75bcbcf2a28261f719df04dce809db2459275c9.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/3/f335e5c4a7470aaeda8e3bd5ac9b78d0422dbea9.png)

this code working perfectly .

when i Copied the buttons to the other tab and made the code it’s not working .

just working for variation 1

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/7/817809cd1e9da7cd425d63c821089d9372866bcf.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/7/0c7ee351b7e339c255f22028d2884da000d24ee0.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/d/b4d65b94ce2b82015e8cdc4b3b68ea458216ea49.png)

I added a print to make sure it’s working and it was giving messages but no material changed .

your help appreciated if i find the solution i would post here aswell .

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [January 11, 2026, 8:36am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/2 "2026-01-11T08:36:31Z")

</div>

Hello,

Most likely cause is that you never set up your parameters inside wood-2 material.

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:00am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/3 "2026-01-11T09:00:50Z")

</div>

actually all are set i made all of them .

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:01am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/4 "2026-01-11T09:01:51Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/2/072787e591dbf4896fe7e6567d8d19c9a2fd091f.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/5/9a57509f711f152c1d50fe38c53a3a7c1ea40224.png)

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [January 11, 2026, 9:08am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/5 "2026-01-11T09:08:46Z")

</div>

This isn’t what I meant. Did you actually setup up parameters for each of these material inside Material file?

 ![Screenshot 2026-01-11 091251](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/d/c9d951895daf4edfd2fd40eed1d05b1fe0858ea2.png)

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:13am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/6 "2026-01-11T09:13:12Z")

</div>

I made an index variable to point out which texture i want in the array .  
the wood-1 tag actors working perfectly fine .

the wood-2 actors doesnt work

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [January 11, 2026, 9:15am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/7 "2026-01-11T09:15:49Z")

</div>

> [@Souls\_T4ker](#):
>
> the wood-2 actors doesnt work

Get wood-2 array and check it’s length before running the loop. I assume it’s not empty because print string fires of, which lead me to asking about your material setup.

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:18am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/8 "2026-01-11T09:18:30Z")

</div>

I made 2 dynamic materials each material was set for each set of actors .  
Material ( Wood - 1 ) and material ( Wood - 2 ) then i set a dynamicmat-1 and dynamicmat-2 then did the whole process but i don’t know where is the flaw .

is it the widget or the code ..

thank you for your effort to figure out the issue .

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:20am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/9 "2026-01-11T09:20:45Z")

</div>

this is in the first tab wood 1 material changed perfecty for lower cabs

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/5/0b5ca91cd4a4b812aa85416f472e17f93c07600d.jpeg)

in the second tab it just giving me the array actors but no interaction at all

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/2/ad2a08cc3ca8197ea6187511c2bee124d8703a4b.jpeg)

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [January 11, 2026, 9:21am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/10 "2026-01-11T09:21:08Z")

</div>

All good, I understand.

Can you please post a screenshot of Wood-2 material graph.

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:25am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/11 "2026-01-11T09:25:33Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/7/437b8c4169688d3339d38872134be3043eb86815.jpeg)

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:26am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/12 "2026-01-11T09:26:42Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/7/7c7fcab967648e7cdf9f257e812acca9dbc0d3e4.png)

when i press the button it fires like this ignoring start is that the problem ?

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:28am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/13 "2026-01-11T09:28:25Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/d/1fdea372cb51310e64a3dbc0b1afc0d8515a408d.png)

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [January 11, 2026, 9:30am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/14 "2026-01-11T09:30:13Z")

</div>

![image (43)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/0/b8040118ae4de5fcbaaecba54592eb665e632203.png)

I need to see what’s inside this file.  
My guess is that you never setup Gloss and Texture parameters inside it, so your logic fires of but there is no matching parameters inside Wood-2 material to actually change anything.

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:32am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/15 "2026-01-11T09:32:41Z")

</div>

Material Wood - 1

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/2/db26d87f84db03868af9544e44f4b3c68bfb7902.png)

Material wood - 2

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/b/69b34d3993ef250c6a7f9dac8f309fdaf44fd1e2.png)

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [January 11, 2026, 9:38am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/16 "2026-01-11T09:38:52Z")

</div>

I replicated your setup 1:1 from screenshot and it does work for me.  
You can right-click on Texture Sample and convert it to parameter. You don’t need the param tex object node at all. I posted a screenshot above with how it should look like.  
If this doesn’t solve it, issue is with blueprint code but really hard to tell, some screenshots are not readable.

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:44am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/17 "2026-01-11T09:44:41Z")

</div>

sadly didnt work but i noticed in wood 2 it really changing the glossiness but not interacting with texture , I did convert texture to parameter as you said in both materials . wood 1 option still working - option 2 just changing glossiness 😃

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:45am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/18 "2026-01-11T09:45:04Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/1/3613fecf6fa0feae1d95ee7907693ad834056fe7.jpeg)

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [January 11, 2026, 9:51am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/19 "2026-01-11T09:51:15Z")

</div>

Okay good.

Can you try adding a very district texture manually for wood-2 material instead of fetching it from array? Also check if array is not empty.

 ![Screenshot 2026-01-11 094908](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/5/e05e3dda1f74dd581c099b5290f5a1020d6bf129.png)

Have you tried using wood-1 dynamic instance (since it’s the same as wood-2) where you plug in Dynamic Instance 2 (Set Material Node)?  
It’s very strange indeed, it must be something silly at this point 🙂

---

<div class="post-metadata">

**Author:** ![Souls\_T4ker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Souls\_T4ker](https://forums.unrealengine.com/u/Souls_T4ker)\
**Post date:** [January 11, 2026, 9:54am UTC](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268/20 "2026-01-11T09:54:46Z")

</div>

it did fix looks like index value i forgot to adjust the index value and you were not able to view cuz of SS quality now it seems to work perfectly fine .

I really do appreciate your patience and help .

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/9/9099d1d95c5faa90c077c49368ce9e2d917d111e.jpeg)

[Next page](https://forums.unrealengine.com/t/widgetswitcher-code-not-working/2691268.md?page=2)
