FKismetEditorUtilities::IdentifyRootActors

Given an array of Actors, identifies which of those Actors are roots of attachment hierarchies (and implicitly which are attached to another actor in the array) Optionally will also populate an attachment map that indicates which actors in the array are attached to each other actor (potentially indirectly) For example if A is attached to B is attached to C and E is attached to D, and A, C, and E are in the Actors array, C and E will be in the RootActors, and the AttachmentMap will indicate that C has A as an attachment

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Kismet2/KismetEditorUtilities.h

Include

#include "Kismet2/KismetEditorUtilities.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Kismet2/Kismet2.cpp

Syntax

static void IdentifyRootActors
(
    const TArray< AActor * > & Actors,
    TArray< AActor * > & RootActors,
    TMap< AActor *, TArray< AActor * >> * AttachmentMap
)

Remarks

Given an array of Actors, identifies which of those Actors are roots of attachment hierarchies (and implicitly which are attached to another actor in the array) Optionally will also populate an attachment map that indicates which actors in the array are attached to each other actor (potentially indirectly) For example if A is attached to B is attached to C and E is attached to D, and A, C, and E are in the Actors array, C and E will be in the RootActors, and the AttachmentMap will indicate that C has A as an attachment

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