AActor::GetComponents

Get a direct reference to the Components set rather than a copy with the null pointers removed.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h

Include

#include "GameFramework/Actor.h"

Syntax

const TSet< UActorComponent * > & GetComponents() const

Remarks

Get a direct reference to the Components set rather than a copy with the null pointers removed. WARNING: anything that could cause the component to change ownership or be destroyed will invalidate this array, so use caution when iterating this set!

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