# How to turn on/off spotlight with with a widgets button?

**URL:** <https://forums.unrealengine.com/t/how-to-turn-on-off-spotlight-with-with-a-widgets-button/1745608>\
**Category:** UI\
**Tags:** interface, button, buttons, actor, visibility, actor-blueprint, unreal-engine, editor, Lighting, UI, Widget, question, Blueprint\
**Created:** [March 11, 2024, 4:26pm UTC](https://forums.unrealengine.com/t/how-to-turn-on-off-spotlight-with-with-a-widgets-button/1745608 "2024-03-11T16:26:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![N\_DOKY](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/n_doky/32/927050_2.png) [@N\_DOKY](https://forums.unrealengine.com/u/N_DOKY)\
**Post date:** [March 11, 2024, 4:26pm UTC](https://forums.unrealengine.com/t/how-to-turn-on-off-spotlight-with-with-a-widgets-button/1745608/1 "2024-03-11T16:26:50Z")

</div>

Hi there UE experts!

How to turn on/off spotlight with with a widgets button? So it acts like a light switch.

I can’t get the blue print working, I seem to be not understanding the blueprints logic.  
What I did: I made a BP with a spot light in it and then create a variable , then place it in the widgit blueprint.

 ![Widgits Nodes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/f/9df9dc1a764e7f875c28eb89e503121d5707d6ce.png)

Any tip would help!  
Thank You

---

<div class="post-metadata">

**Author:** ![CRtech1462](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CRtech1462](https://forums.unrealengine.com/u/CRtech1462)\
**Post date:** [November 26, 2024, 2:29am UTC](https://forums.unrealengine.com/t/how-to-turn-on-off-spotlight-with-with-a-widgets-button/1745608/2 "2024-11-26T02:29:19Z")

</div>

I’m struggling with the same issue, please someone help

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 26, 2024, 10:51am UTC](https://forums.unrealengine.com/t/how-to-turn-on-off-spotlight-with-with-a-widgets-button/1745608/3 "2024-11-26T10:51:24Z")

</div>

> [@CRtech1462](#):
>
> please someone help

Please post **details** of what needs doing. Judging by the description, it’s this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/b/65b5c16c459e185a9835485cccbae255c7f0c36d.png)

I am also 100% certain **this** is not _it_ as there surely is small print to follow now… 😇

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 16, 2025, 3:45am UTC](https://forums.unrealengine.com/t/how-to-turn-on-off-spotlight-with-with-a-widgets-button/1745608/4 "2025-01-16T03:45:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
