USceneComponent::GetAttachmentRootActor

Walks up the attachment chain from this SceneComponent and returns the top-level actor it's attached to.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/SceneComponent.h

Include

#include "Components/SceneComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/SceneComponent.cpp

Syntax

AActor * GetAttachmentRootActor() const

Remarks

Walks up the attachment chain from this SceneComponent and returns the top-level actor it's attached to. Returns Owner if unattached.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss