SetActorHiddenInGame
should fire off a delegate that can be accessed in BP or C++. OnActorHidden(actor, bIsHidden)
This makes knowing when an actor of an unknown class and unknown interface (AActor delegate) changes visibility a little easier for most common uses. Like calling one shot function that would be ugly in a ontick->IsActorHidden() do function.
As of 4.24 i just have an component+interface for this. on the Actor i override SetActorHiddenInGame
to fire delegate on the component. In widget i find actor, cast to interface, get component from interface, hook onto delegate…
What do you guys think?