Set Actor Hidden In Game does not hide light componentes

Using version 4.14.3.

If you have an actor with some light component, then set that actor hidden with the “Set Actor Hidden In Game” command, any light components will still be visible.

We are using dynamic lighting.

Did you try using Set Visibility on the Light Component?

Thanks for your answer, but I’m not interested in doing custom per class alteration for this. I expect “Set Actor Hidden In Game” to also hide light, without me having to do a bunch of ‘hacks’. (Like maybe that light already had it’s visibility off. And then when I want to show this actor again, I don’t know what state that component was in before I turned it off. And I’d have to store that and it all becomes a mess of imo, uneeded stuff since the actor hidden should have taken care of this ).

I am able to replicate it quite easily, Set Hidden In Game doesnt work on Light Components period whether its through Actor or not!

Using Set Visibility can be propagated to all children but as you say if the light is off when you hide the Actor then it requires you to store a state.

I do recommend being as verbose as possible in reports if you can, that information you provided does show a use case that doesnt seem to be provided for in work arounds and no one was to know that before responding.

Hello ,

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here Unreal Engine Issues and Bug Tracker (UE-41603). You can track the report’s status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.

Thank you!

So what happened to this issue? The link to 41603 says “Unknown Issue”.

There is a period at the end of the URL by accident the correct URL is here:

Still the bug has not fixed yet. So I’m using Set Visibility or Toggle Visibility for light components.

Just try

Actor->GetRootComponent()->SetVisibility(false, true);

I actually hope that this bug is not fixed, this is desired behavior for me. I would like to have light cast from hidden actor.