AActor::UpdateComponentVisibility
#include "GameFramework/Actor.h"
Access: public
Description
Propagates the actor's current hidden/visible state to all attached components, ensuring their render visibility matches the actor-level flag.
Caveats & Gotchas
- • This is called automatically when SetActorHiddenInGame is used; you only need to call it directly if you have manually changed bHidden or a component's owner-visibility dependency outside of the normal API.
- • Components with their own independent visibility overrides may not be fully overridden by this call — per-component SetVisibility takes precedence.
Signature
ENGINE_API void UpdateComponentVisibility(); Return Type
void Example
Manually sync visibility after a direct bHidden change C++
// Direct flag write (unusual — prefer SetActorHiddenInGame)
bHidden = true;
UpdateComponentVisibility(); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?