# Turning light on and off

**URL:** <https://forums.unrealengine.com/t/turning-light-on-and-off/53939>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [January 29, 2016, 10:01pm UTC](https://forums.unrealengine.com/t/turning-light-on-and-off/53939 "2016-01-29T22:01:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asmithey](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/asmithey/32/473509_2.png) [@asmithey](https://forums.unrealengine.com/u/asmithey)\
**Post date:** [January 29, 2016, 10:01pm UTC](https://forums.unrealengine.com/t/turning-light-on-and-off/53939/1 "2016-01-29T22:01:49Z")

</div>

Hi, I have a scene where I can walk into a room and turn the lights on and off with a switch. I have the lights set up as movable. Because I do not want the light baked into the scene the shadows and light need to be dynamic. The objects which the lights hit are not casting shadows. I have played around with a bunch of setting options. But I still can not get static objects to cast shadows with the movable lights. Is there a fundamental set up for this?

Thanks,

Aaron

---

<div class="post-metadata">

**Author:** ![asmithey](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/asmithey/32/473509_2.png) [@asmithey](https://forums.unrealengine.com/u/asmithey)\
**Post date:** [January 30, 2016, 10:30pm UTC](https://forums.unrealengine.com/t/turning-light-on-and-off/53939/2 "2016-01-30T22:30:29Z")

</div>

I fixed it. Just needed to toggle on cast dynamic shadows for each light. But after I built the lighting the playback was slow. So I am tuning it back off.
