# How to get every point light in the level and set it's intensity

**URL:** <https://forums.unrealengine.com/t/how-to-get-every-point-light-in-the-level-and-set-its-intensity/453033>\
**Category:** Rendering\
**Tags:** point-light, light, unreal-engine, Array, UE4, Blueprint, question\
**Created:** [July 29, 2019, 5:05pm UTC](https://forums.unrealengine.com/t/how-to-get-every-point-light-in-the-level-and-set-its-intensity/453033 "2019-07-29T17:05:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Logz\_123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Logz\_123](https://forums.unrealengine.com/u/Logz_123)\
**Post date:** [July 29, 2019, 5:05pm UTC](https://forums.unrealengine.com/t/how-to-get-every-point-light-in-the-level-and-set-its-intensity/453033/1 "2019-07-29T17:05:38Z")

</div>

i want to get every point light in my level and be able to switch it’s intensity

---

<div class="post-metadata">

**Author:** ![Alekann01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alekann01](https://forums.unrealengine.com/u/Alekann01)\
**Post date:** [July 29, 2019, 10:20pm UTC](https://forums.unrealengine.com/t/how-to-get-every-point-light-in-the-level-and-set-its-intensity/453033/2 "2019-07-29T22:20:25Z")

</div>

Hi Logs.

You can simply use “GetAllActorsOfClass” and loop through the results.

 ![283545-setintensityofspotlights.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/2/ac24f9585cd603fdd02201a27d1775831644447d.png)

Although, if your scene has many point lights, this would be expensive for repeated use. It is best to store the results in an array. This might be a more slightly more efficient solution.

 ![283546-setintensityofspotlights2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/8/1383b3b52cac4481ca50daaca4283f611afb461a.png)
