# Light source

**URL:** <https://forums.unrealengine.com/t/light-source/234147>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [June 7, 2021, 10:11pm UTC](https://forums.unrealengine.com/t/light-source/234147 "2021-06-07T22:11:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 7, 2021, 10:11pm UTC](https://forums.unrealengine.com/t/light-source/234147/1 "2021-06-07T22:11:26Z")

</div>

I have a point light. How can I disable it in the game? I need that when you go to the switch and press the enter key, so that the light source is completely turned off and the room is like in the night. But then, and upon inclusion, a rebuild of objects must occur.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 7, 2021, 10:21pm UTC](https://forums.unrealengine.com/t/light-source/234147/2 "2021-06-07T22:21:21Z")

</div>

That is, to make it “Mobile”? And how to implement it, the fact is that I’m a beginner and don’t know how to implement it. I mean the on, off itself. I made door opening, completely copying how it was done on video. That is, you need to enable or disable effects world in the game?  
Perhaps you can somehow refer to the id of the object? How can I see the id of the light bulb and cause the effects world in the game to be disabled?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 7, 2021, 10:57pm UTC](https://forums.unrealengine.com/t/light-source/234147/3 "2021-06-07T22:57:06Z")

</div>

Probably my question is stupid, but how do I open the level blueprint?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 7, 2021, 11:08pm UTC](https://forums.unrealengine.com/t/light-source/234147/4 "2021-06-07T23:08:08Z")

</div>

I did everything as you said, but after I did it nothing works

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 7, 2021, 11:11pm UTC](https://forums.unrealengine.com/t/light-source/234147/5 "2021-06-07T23:11:35Z")

</div>

I apologize, apparently I did not rebuild, thank you so much, but I still need it to work only when you come to the switch.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 7, 2021, 11:17pm UTC](https://forums.unrealengine.com/t/light-source/234147/6 "2021-06-07T23:17:12Z")

</div>

I also have a blue print to open doors, and when I start the game and press enter, the light turns on and off, but when I go to the door and press enter, the door starts to open and close even when I’m far from it, and the light stops working at all. I have the same button that opens the door when you approach it in the project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 7, 2021, 11:26pm UTC](https://forums.unrealengine.com/t/light-source/234147/7 "2021-06-07T23:26:55Z")

</div>

Thank you very much!!!  
I think I’ll figure it out further.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 7, 2021, 11:39pm UTC](https://forums.unrealengine.com/t/light-source/234147/8 "2021-06-07T23:39:27Z")

</div>

What do I need to do so that others do not make the game for me, so that I myself can solve all the issues?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 7, 2021, 11:49pm UTC](https://forums.unrealengine.com/t/light-source/234147/9 "2021-06-07T23:49:27Z")

</div>

By the way, the only thing that does not suit me is that the light does not turn off completely, it turns off completely only after removing the light source and rebuild the objects

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 12:08am UTC](https://forums.unrealengine.com/t/light-source/234147/10 "2021-06-08T00:08:26Z")

</div>

Is there anything you can do to turn off the light completely and turn it on?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 12:18am UTC](https://forums.unrealengine.com/t/light-source/234147/11 "2021-06-08T00:18:37Z")

</div>

I agree, I think over time I will learn how to solve all the problems myself, and there will be no such stupid questions.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 12:21am UTC](https://forums.unrealengine.com/t/light-source/234147/12 "2021-06-08T00:21:26Z")

</div>

![texture](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/c/9c450392ff6bd4454fddfefce7fdbb3ba3acf24c.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 12:23am UTC](https://forums.unrealengine.com/t/light-source/234147/13 "2021-06-08T00:23:18Z")

</div>

Is it possible to somehow see the id of the object? And refer to the object through it?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 12:33am UTC](https://forums.unrealengine.com/t/light-source/234147/14 "2021-06-08T00:33:11Z")

</div>

I have already tried portability and it did not lead to new results. I think since in the project editing mode you need to reconfigure all the objects on the scene in order to calculate the darkness, then the same thing would have to be done in the game mode.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 12:36am UTC](https://forums.unrealengine.com/t/light-source/234147/15 "2021-06-08T00:36:51Z")

</div>

Well, in principle, if you can select an object and refer to it with the right mouse button in the blueprint of the level, then this is not necessary. I just worked in gms before, and there most often I worked through the id of the object. I would like not to change tactics. But this is probably even more convenient.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 12:44am UTC](https://forums.unrealengine.com/t/light-source/234147/16 "2021-06-08T00:44:03Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/a/2ae56007e6b759d21407f58826b8420f20add5cc.jpeg)  
well, could you help me with something else. Here is the Blueprint of the door, which I need to change so that glitches do not occur, when I go to the door and press and then move away from colliding with it, then for some reason it still opens and closes, and the light stops working?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 3:38am UTC](https://forums.unrealengine.com/t/light-source/234147/17 "2021-06-08T03:38:38Z")

</div>

YES, thanks, the light is on, but the door still opens and closes wherever I am

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 3:53am UTC](https://forums.unrealengine.com/t/light-source/234147/18 "2021-06-08T03:53:05Z")

</div>

It all worked! Great, I don’t know how to thank you, how difficult it is when you don’t know anything.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 4:06am UTC](https://forums.unrealengine.com/t/light-source/234147/19 "2021-06-08T04:06:55Z")

</div>

Everything is great, I enjoy the engine, but for some reason the main character’s sneakers glow in the dark. Exactly when he walks, even in a room where nothing is visible.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ea29ec74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ea29ec74](https://forums.unrealengine.com/u/anonymous_user_ea29ec74)\
**Post date:** [June 8, 2021, 4:10am UTC](https://forums.unrealengine.com/t/light-source/234147/20 "2021-06-08T04:10:16Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/7/577c8eae301746737a13091952b02e6dd96571c2.jpeg)
