Navigation
API > API/Runtime > API/Runtime/NavigationSystem > API/Runtime/NavigationSystem/UNavigationSystemV1
Description
A helper function that gathers all actors attached to RootActor and fetches them back. The function does consider multi-level attachments.
| Name | GetAllAttachedActors |
| Type | function |
| Header File | /Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h |
| Include Path | #include "NavigationSystem.h" |
| Source | /Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp |
static int32 GetAllAttachedActors
(
const AActor & RootActor,
TArray < AActor * > & OutAttachedActors
)
the number of unique attached actors
Parameters
| Name | Remarks |
|---|---|
| RootActor | The reference actor to get the attached actors from. |
| OutAttachedActors | is getting reset at the beginning of the function. When done it is guaranteed to contain unique, non-null ptrs. It will not include RootActor. |