# How to toggle emissive material through ui widget?

**URL:** <https://forums.unrealengine.com/t/how-to-toggle-emissive-material-through-ui-widget/480559>\
**Category:** Rendering\
**Tags:** toggle, User-Interface, unreal-engine, question\
**Created:** [March 19, 2021, 12:54pm UTC](https://forums.unrealengine.com/t/how-to-toggle-emissive-material-through-ui-widget/480559 "2021-03-19T12:54:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Savage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@J\_Savage](https://forums.unrealengine.com/u/J_Savage)\
**Post date:** [March 19, 2021, 12:54pm UTC](https://forums.unrealengine.com/t/how-to-toggle-emissive-material-through-ui-widget/480559/1 "2021-03-19T12:54:50Z")

</div>

Hi all, I’ve currently got my UI widget to toggle visibility of spotlights on actors through on ‘clicked button’. I have added planes above each actor as a use of a icon on a screen capture map.  
I wanted to know how I’d toggle an emissive material on the same clicked button?  
This is what i have already:

 ![332988-actor-bp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/6/d462e6b41c4d0c1d23fdff67897c8db367be621b.jpeg)

And here is a clip of what it shows:  
 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/1/3d15bbb857ad4975a547a8053b496098fcf2c4f0.gif "Animated GIF - Find & Share on GIPHY")

---

<div class="post-metadata">

**Author:** ![J\_Savage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@J\_Savage](https://forums.unrealengine.com/u/J_Savage)\
**Post date:** [March 19, 2021, 1:13pm UTC](https://forums.unrealengine.com/t/how-to-toggle-emissive-material-through-ui-widget/480559/2 "2021-03-19T13:13:38Z")

</div>

Never Mind. I solved it myself. I added a flipflop connected to a Set material function node, which i set it to an emissive material. Then linked another set material into the B and added the non-emissive material.
