# Can't rotate custom Cubemap for Skylight in BP

**URL:** <https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [April 25, 2019, 11:32am UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392 "2019-04-25T11:32:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bzk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bzk](https://forums.unrealengine.com/u/bzk)\
**Post date:** [April 25, 2019, 11:32am UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/1 "2019-04-25T11:32:05Z")

</div>

I’m experimenting with ray tracing and lighting my scenes with an hdr cubemap.  
I made a simple BP that has a sphere and a skylight and I rotate the texture on the sphere and the cubemap angle.  
Works fine when I play the level but I can’t preview the rotation because I can’t set the cubemap angle in BP so the construction script doesn’t update.

Considering there’s a “get cubemap angle” node I’d think the missing set node is an oversight. Hope you add it soon, it’d be useful for real time lighting.

---

<div class="post-metadata">

**Author:** ![NasteX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NasteX](https://forums.unrealengine.com/u/NasteX)\
**Post date:** [April 26, 2019, 9:28am UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/2 "2019-04-26T09:28:00Z")

</div>

If you googled a bit you couldve found this thread. [Rotate HDRI within SkyLight or PostProcessVolume? - Asset Creation - Unreal Engine Forums](https://answers.unrealengine.com/questions/255252/rotate-hdri-within-skylight-or-postprocessvolume-1.html)

One little tip for you, change the View mode to Path Tracing, there you will see the angle of the Skylight cubemap. This way you can match the SkySphere" texture or the other way around.

---

<div class="post-metadata">

**Author:** ![bzk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bzk](https://forums.unrealengine.com/u/bzk)\
**Post date:** [April 30, 2019, 12:36pm UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/3 "2019-04-30T12:36:27Z")

</div>

> [@NasteX](#):
>
> If you googled a bit you couldve found this thread. [Rotate HDRI within SkyLight or PostProcessVolume? - Asset Creation - Epic Developer Community Forums](https://answers.unrealengine.com/questions/255252/rotate-hdri-within-skylight-or-postprocessvolume-1.html)
> 
> One little tip for you, change the View mode to Path Tracing, there you will see the angle of the Skylight cubemap. This way you can match the SkySphere" texture or the other way around.

That really doesn’t help me in any way. I want to visualize the HDRI rotation in the editor. I already have it working as the game is playing.  
The only reason I can’t do it right now, as I explained exceedingly simply before, is because the blueprint editor is missing a node that absolutely should be there.

---

<div class="post-metadata">

**Author:** ![Planet\_Timmy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Planet\_Timmy](https://forums.unrealengine.com/u/Planet_Timmy)\
**Post date:** [September 10, 2020, 2:14am UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/5 "2020-09-10T02:14:45Z")

</div>

Just to note that if like me, you’ve also been looking for a solution to setting the cubemap angle for a ‘Specified cubemap’ from blueprints - there isn’t currently a way to do it. You will have to write a C++ class to set USkylightComponent::SourceCubemapAngle.

The solution linked to in the above posts that uses the ‘BP\_LightStudio’ blueprint requires that you use the ‘SLS Captured Scene’ style of cubemaps, which won’t work if you want to stick with ‘Specified Cubemaps’ for your Skylight.

---

<div class="post-metadata">

**Author:** ![ahubl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ahubl](https://forums.unrealengine.com/u/ahubl)\
**Post date:** [October 13, 2020, 12:19pm UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/6 "2020-10-13T12:19:06Z")

</div>

i thought it would be much easier to rotate the HDRI just like in 3D Max/ VRay Fstorm aso … ☹

---

<div class="post-metadata">

**Author:** ![buttmatrix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@buttmatrix](https://forums.unrealengine.com/u/buttmatrix)\
**Post date:** [February 15, 2021, 5:04am UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/7 "2021-02-15T05:04:35Z")

</div>

> [@Planet\_Timmy](#):
>
> Just to note that if like me, you’ve also been looking for a solution to setting the cubemap angle for a ‘Specified cubemap’ from blueprints - there isn’t currently a way to do it. You will have to write a C++ class to set USkylightComponent::SourceCubemapAngle.
> 
> The solution linked to in the above posts that uses the ‘BP\_LightStudio’ blueprint requires that you use the ‘SLS Captured Scene’ style of cubemaps, which won’t work if you want to stick with ‘Specified Cubemaps’ for your Skylight.

This is mindblowing to me that of all the features in UE4, being able to rotate an HDRI at runtime is somehow overlooked; yet it is a patently obvious feature in so many accessory software, e.g. Marmoset, Designer, Painter, Keyshot, etc.

Did you arrive at a solution for this? I also attempted the BP\_LightStudio method, but to no avail - as you pointed out.

Is there no method to animate (keyframe) a skylight in sequencer in 2021?

---

<div class="post-metadata">

**Author:** ![bzk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bzk](https://forums.unrealengine.com/u/bzk)\
**Post date:** [March 1, 2021, 9:12am UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/8 "2021-03-01T09:12:40Z")

</div>

> [@buttmatrix](#):
>
> This is mindblowing to me that of all the features in UE4, being able to rotate an HDRI at runtime is somehow overlooked; yet it is a patently obvious feature in so many accessory software, e.g. Marmoset, Designer, Painter, Keyshot, etc.
> 
> Did you arrive at a solution for this? I also attempted the BP\_LightStudio method, but to no avail - as you pointed out.
> 
> Is there no method to animate (keyframe) a skylight in sequencer in 2021?

There’s a plugin for HDRIs you can enable. But that has it’s own shortcomings because it’s made for product display or some such nonsense - if I remember correctly it does not work with ray tracing which makes it pretty much useless for my usecase. And it’s kinda heavy for the results it produces as well. So altogether not a good option.

---

<div class="post-metadata">

**Author:** ![PeterJaB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/peterjab/32/1193908_2.png) [@PeterJaB](https://forums.unrealengine.com/u/PeterJaB)\
**Post date:** [July 20, 2021, 2:23am UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/9 "2021-07-20T02:23:34Z")

</div>

Set Property seems to work fine on Source Cubemap Angle in BP in 4.26.2

in the Set Editor Property Node, use “SourceCubemapAngle” as the property name, Object is the Lightcomponent of the SkyLight.

---

<div class="post-metadata">

**Author:** ![Brumenn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brumenn/32/479251_2.png) [@Brumenn](https://forums.unrealengine.com/u/Brumenn)\
**Post date:** [April 16, 2022, 9:09am UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/10 "2022-04-16T09:09:36Z")

</div>

Hi !

This was working in 4.27.2 but now crashes in 5.0 😕

---

<div class="post-metadata">

**Author:** ![Brumenn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brumenn/32/479251_2.png) [@Brumenn](https://forums.unrealengine.com/u/Brumenn)\
**Post date:** [April 20, 2022, 12:38pm UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/11 "2022-04-20T12:38:16Z")

</div>

It crashes in 5.0.1 too, with this error :

`Assertion failed: !bActorIsBeingConstructed [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\ActorConstruction.cpp] [Line: 711] Actor construction is not reentrant`

---

<div class="post-metadata">

**Author:** ![Brumenn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brumenn/32/479251_2.png) [@Brumenn](https://forums.unrealengine.com/u/Brumenn)\
**Post date:** [April 26, 2022, 3:30pm UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/12 "2022-04-26T15:30:46Z")

</div>

The crash has been logged as [UE-150161](https://issues.unrealengine.com/issue/UE-150161).

---

<div class="post-metadata">

**Author:** ![JDARRAS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jdarras/32/619913_2.png) [@JDARRAS](https://forums.unrealengine.com/u/JDARRAS)\
**Post date:** [November 8, 2022, 11:15am UTC](https://forums.unrealengine.com/t/cant-rotate-custom-cubemap-for-skylight-in-bp/125392/13 "2022-11-08T11:15:10Z")

</div>

Hello @PeterJaB,

I can find the get sourcecubemapangle but not the set !

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/f/87f489ade4b9470baa35c8fbd68e701da1cd9923.png)

Whqat is the set editor property name ?  
Thanks  
JD
