UNavigationSystemV1::GetAllAttachedActors

A helper function that gathers all actors attached to RootActor and fetches them back.

Windows
MacOS
Linux

References

Module

NavigationSystem

Header

/Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h

Include

#include "NavigationSystem.h"

Source

/Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp

Syntax

static int32 GetAllAttachedActors
(
    const AActor & RootActor,
    TArray< AActor * > & OutAttachedActors
)

Remarks

A helper function that gathers all actors attached to RootActor and fetches them back. The function does consider multi-level attachments.

Returns

the number of unique attached actors

Parameters

Parameter

Description

AttachedActors

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.

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