# Dynamically changing HDRI cubemaps at runtime

**URL:** <https://forums.unrealengine.com/t/dynamically-changing-hdri-cubemaps-at-runtime/225757>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [April 22, 2021, 11:12am UTC](https://forums.unrealengine.com/t/dynamically-changing-hdri-cubemaps-at-runtime/225757 "2021-04-22T11:12:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4c42ff7c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4c42ff7c](https://forums.unrealengine.com/u/anonymous_user_4c42ff7c)\
**Post date:** [April 22, 2021, 11:12am UTC](https://forums.unrealengine.com/t/dynamically-changing-hdri-cubemaps-at-runtime/225757/1 "2021-04-22T11:12:47Z")

</div>

Hello everybody,

I just installed unreal yesterday, so please forgive me if this is a stupid question. I need to use unreal to generate a synthetic dataset for object recognition.  
Therefore I need switch between many HDRI’s, so that the dataset contains the object under many different lighting conditions. I am sure that game engines aren’t optimized for this, anyhow here is my current blueprint:

 ![2021-04-21_20-20](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/8/a8cc3035e16d7dea909f475400a2d0a927dcf1bf.png)

When I use a get cubemap and print string node after setting a custom cubemap from the asset folder, it correctly outputs the respective asset. However, the HDRI is still the unreals default one. Any ideas?

---

<div class="post-metadata">

**Author:** ![mcs\_032](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mcs\_032](https://forums.unrealengine.com/u/mcs_032)\
**Post date:** [July 29, 2022, 6:00am UTC](https://forums.unrealengine.com/t/dynamically-changing-hdri-cubemaps-at-runtime/225757/2 "2022-07-29T06:00:06Z")

</div>

Just in case someone else ends up here. This answer provides a solution to this question

> [@Change HDRI cubemap on the fly](https://forums.unrealengine.com/t/change-hdri-cubemap-on-the-fly/474500/7):
>
> To anyone encountering this in the future, I have found the solution. When I saw that the same issue arises when rotating the HDRI, I opened up the HDRI BP and looked at the constructor. Apparently, there is an additional “post edit” step needed to be done, see attachment.

---

<div class="post-metadata">

**Author:** ![KimLaughton](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kimlaughton/32/979013_2.png) [@KimLaughton](https://forums.unrealengine.com/u/KimLaughton)\
**Post date:** [September 10, 2022, 3:03am UTC](https://forums.unrealengine.com/t/dynamically-changing-hdri-cubemaps-at-runtime/225757/3 "2022-09-10T03:03:28Z")

</div>

Thanks - super handy!
