Visibility of World Outliner doesn't affect skylight. But it affects other kinds of lights like Point Light, Directional Light.
I found that USkyLightComponent::CreateRenderState_Concurrent() doesn't check in bHiddenEdTemporary as below. (ULightComponent::CreateRenderState_Concurrent() used by other light types checks the variable, though.)
void USkyLightComponent::CreateRenderState_Concurrent() { ... #if WITH_EDITORONLY_DATA bHidden = GetOwner() ? GetOwner()->bHiddenEdLevel : false; #endif // WITH_EDITORONLY_DATA ...
I changed the code to check bHiddenEdTemporary as below. And it seems to fix this issue.
void USkyLightComponent::CreateRenderState_Concurrent() { ... #if WITH_EDITORONLY_DATA bHidden = GetOwner() ? GetOwner()->IsTemporarilyHiddenInEditor() || GetOwner()->bHiddenEdLevel : false; #endif // WITH_EDITORONLY_DATA ...
How does TextureRenderTarget2D get TArray<uint8> type data?
Why does the REMOVE method of map container remove elements have memory leaks?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
How do I set a material as a post-processing material?
UMG RichText not appear image when packaged
What is the difference between Camera and CineCamera?
How to delete some elements correctly when deleting an array loop?
How does TArray loop correctly remove elements in blueprints?
How to implement springarm components to scale according to mouse position in spawn?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-66870 in the post.
1 |
Component | UE - Graphics Features |
---|---|
Affects Versions | 4.19, 4.20, 4.21 |
Created | Nov 27, 2018 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |