AActor::IsHidden
#include "GameFramework/Actor.h"
Access: public
Specifiers: const
Description
Returns the raw value of the bHidden flag. This is the low-level accessor introduced so bHidden can be made private in a future engine version.
Caveats & Gotchas
- • This returns the bHidden property directly, which is the hidden-in-game flag — distinct from the editor-only IsHiddenEd() state. An actor can be visible in-game while hidden in the editor and vice versa.
- • SetActorHiddenInGame is the virtual, component-aware counterpart — it propagates visibility changes to components. IsHidden only reads the flag and does not account for component-level visibility overrides.
- • Because this is a non-virtual inline accessor, it cannot be overridden in subclasses to report a different hidden state — if you need polymorphic visibility queries, check component visibility instead.
Signature
bool IsHidden() const Return Type
bool Example
Conditionally interact only with visible actors C++
bool AMyInteractionSystem::CanInteract(AActor* Target) const
{
if (!Target || Target->IsHidden())
{
return false;
}
return Target->ActorHasTag(TEXT("Interactable"));
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?