Language:
Discover
By Skill Level
By Category

FActorFolders

Choose your OS:

Inheritance Hierarchy

FGCObject

FActorFolders

Syntax

struct FActorFolders : public FGCObject

Remarks

Class responsible for managing an in-memory representation of actor folders in the editor

Constructors

Name Description

Public function

FActorFolders()

Destructors

Name Description

Public function

~FActorFolders()

Functions

Name Description

Public function Static

void

 

Cleanup()

Clean up the singleton instance - called on Editor Exit

Public function

void

 

CreateFolder

(
    UWorld & InWorld,
    FName Path
)

Create a new folder in the specified world, of the specified path

Public function

void

 

CreateFolderContainingSelection

(
    UWorld & InWorld,
    FName Path
)

Same as CreateFolder, but moves the current actor selection into the new folder as well

Public function

void

 

DeleteFolder

(
    UWorld & InWorld,
    FName FolderToDelete
)

Delete the specified folder in the world

Public function Static

FActorFolder ...

 

Get()

Singleton access - only valid if IsAvailable()

Public function

FName

 

GetDefaultFolderName

(
    UWorld & InWorld,
    FName ParentPath
)

Get a default folder name under the specified parent path

Public function

FName

 

GetDefaultFolderNameForSelection

(
    UWorld & InWorld
)

Get a new default folder name that would apply to the current selection

Public function

FActorFolder ...

 

GetFolderProperties

(
    UWorld & InWorld,
    FName InPath
)

Get the folder properties for the specified path. Returns nullptr if no properties exist

Public function

const TMap < ...

 

GetFolderPropertiesForWorld

(
    UWorld & InWorld
)

Get a map of folder properties for the specified world (map of folder path -> properties)

Public function Static

void

 

Init()

Initialize the singleton instance - called on Editor Startup

Public function Static

bool

 

IsAvailable()

End FGCObject Interface.

Public function Static

bool

 

PathIsChildOf

(
    const FString & InPotentialChild,
    const FString & InParent
)

Check if the specified path is a child of the specified parent

Public function

bool

 

RenameFolderInWorld

(
    UWorld & World,
    FName OldPath,
    FName NewPath
)

Rename the specified path to a new name

Public function

void

 

SetSelectedFolderPath

(
    FName Path
)

Sets the folder path for all the selected actors

Overridden from FGCObject

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector & Collector
)

FGCObject Interface.

Constants

Name

Description

OnFolderCreate

Static member definitions.

OnFolderDelete

OnFolderMove

Singleton

Singleton instance maintained by the editor

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/EditorActorFolders.h