FWorldTreeItem

A tree item that represents an entire world

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

SceneOutliner

Header

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

Include

#include "WorldTreeItem.h"

Syntax

struct FWorldTreeItem : public SceneOutliner::ITreeItem

Remarks

A tree item that represents an entire world

Variables

Name Description

Public variable

const FObjectKe...

 

ID

Constant identifier for this tree item

Public variable

TWeakObjectPtr<...

 

World

The world this tree item is associated with.

Constructors

Name Description

Public function

FWorldTreeItem

(
    UWorld* InWorld
)

Construct this item from a world

Functions

Name Description

Public function Const

FString

 

GetWorldName()

Get just the name of the world, for tooltip use

Public function Const

void

 

OpenWorldSettings()

Open the world settings for the contained world

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. Always returns nullptr.

Public function Virtual Const

FTreeItemPtr

 

FindParent

(
    const FTreeItemMap& ExistingItems
)

Get this item's parent item. Always returns nullptr.

Public function Virtual

void

 

GenerateContextMenu

(
    UToolMenu* Menu,
    SSceneOutliner& Outliner
)

Generate a context menu for this item. Only called if only this item is selected.

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