RealDocs

AActor::IsSelectionParentOfAttachedActors

function Engine Since 4.20
#include "GameFramework/Actor.h"
Access: public Specifiers: virtualENGINE_APIconst

Description

Returns whether this actor acts as a selection parent for its attached actors in the editor. When true, selecting a child also implies selection of this parent as a group.

Caveats & Gotchas

  • This is an editor-only concept — the function is compiled in all builds but its result is only meaningful inside the editor. At runtime there is no selection system.
  • The default implementation returns false. Override it in actors that logically group their children (e.g. procedural mesh generators or level instance roots) to get correct group-selection behavior in the editor.
  • Must be consistent with IsSelectionChild() on the attached actors — mismatched overrides will produce confusing selection behavior in the editor viewport.

Signature

ENGINE_API virtual bool IsSelectionParentOfAttachedActors() const

Return Type

bool

Example

Mark an actor as a selection group parent C++
bool AMyGroupActor::IsSelectionParentOfAttachedActors() const
{
    return true; // Selecting any child also selects this actor
}

Version History

Introduced in: 4.20

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.