Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/AActor > API/Runtime/Engine/GameFramework/AActor/GetComponents
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include | #include "GameFramework/Actor.h" |
const TSet< UActorComponent &42; > & GetComponents&40;&41; 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!