FActorTreeItem

A tree item that represents an actor in the world

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

SceneOutliner

Header

/Engine/Source/Editor/SceneOutliner/Public/ActorTreeItem.h

Include

#include "ActorTreeItem.h"

Syntax

struct FActorTreeItem : public SceneOutliner::ITreeItem

Remarks

A tree item that represents an actor in the world

Variables

Name Description

Public variable

TWeakObjectPtr<...

 

Actor

The actor this tree item is associated with.

Public variable

bool

 

bExistsInCurrentWorldAndPIE

True if this item exists in both the current world and PIE.

Public variable

const FObjectKe...

 

ID

Constant identifier for this tree item

Constructors

Name Description

Public function

FActorTreeItem

(
    AActor* InActor
)

Construct this item from an actor

Overridden from ITreeItem

Name Description

Public function Virtual Const

bool

 

CanInteract()

Check whether it should be possible to interact with this tree item

Public function Virtual Const

FTreeItemPtr

 

CreateParent()

Create this item's parent. It is valid to return nullptr if this item has no parent

Public function Virtual Const

FTreeItemPtr

 

FindParent

(
    const FTreeItemMap& ExistingItems
)

Get this item's parent item. It is valid to return nullptr if this item has no parent

Public function Virtual Const

FString

 

GetDisplayString()

Get the raw string to display for this tree item - used for sorting

Public function Virtual Const

FTreeItemID

 

GetID()

Get the ID that represents this tree item. Used to reference this item in a map

Public function Virtual Const

int32

 

GetTypeSortPriority()

Get the sort priority given to this item's type

Public function Virtual Const

void

 

PopulateDragDropPayload

(
    FDragDropPayload& Payload
)

Populate the specified drag/drop payload with any relevant information for this type

Public function Virtual Const

void

 

Visit

(
    const ITreeItemVisitor& Visitor
)

Visit this tree item

Public function Virtual

void

 

Visit

(
    const IMutableTreeItemVisitor& Vis...
)

Overridden from IDropTarget

Name Description

Public function Virtual

void

 

OnDrop

(
    FDragDropPayload& DraggedObjects,
    UWorld& World,
    const FDragValidationInfo& Validat...,
    TSharedRef< SWidget > DroppedOnWidg...
)

Called to drop the specified objects on this item.

Public function Virtual Const

FDragValidat...

 

ValidateDrop

(
    FDragDropPayload& DraggedObjects,
    UWorld& World
)

Called to test whether the specified payload can be dropped onto this tree item

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