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 ...
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 |