Navigation
API > API/Editor > API/Editor/SceneOutliner
Inheritance Hierarchy
- ISceneOutliner
- FEditorUndoClient
- FGCObject
- SSceneOutliner
- SContentBundleOutliner
- SObjectMixerEditorList
References
| Module | SceneOutliner |
| Header | /Engine/Source/Editor/SceneOutliner/Public/SSceneOutliner.h |
| Include | #include "SSceneOutliner.h" |
Syntax
class SSceneOutliner :
public ISceneOutliner,
public FEditorUndoClient,
public FGCObject
Remarks
Scene Outliner widget
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor - initializes data that is shared between all tree items |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| SSceneOutliner destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddFolderToSelection
(
const FName& FolderName |
Add a folder to the selection of the scene outliner | |
| void | AddMoveToFolderOutliner
(
UToolMenu* Menu |
||
| void | AddSourceControlMenuOptions
(
UToolMenu* Menu |
||
| void | AddToSelection
(
const TArray< FSceneOutlinerTreeItemPtr >& InItems, |
Adds a set of items to the current selection | |
| void | Deselect all selected items | ||
| void | CollapseAll () |
||
| void | Construct
(
const FArguments& InArgs, |
Construct this widget. Called by the SNew()Slate macro. | |
| void | Called by copy and duplicate | ||
| void | Called by copy and duplicate | ||
| void | CopyFoldersToClipboard
(
const TArray< FName >& InFolders, |
Copy specified folders to clipboard, keeping current clipboard contents if they differ from previous clipboard contents (meaning items were copied) | |
| TSharedPtr< FDragDropOperation > | CreateDragDropOperation
(
const FPointerEvent& MouseEvent, |
Create a drag drop operation | |
| void | CreateFolder () |
Create a new folder under the specified parent name (NAME_None for root) | |
| FSceneOutlinerTreeItemPtr | CreateItemFor
(
const TreeItemData& Data, |
Test the filters using stack-allocated data to prevent unnecessary heap allocations. | |
| void | CustomAddToToolbar
(
TSharedPtr< class SHorizontalBox > Toolbar |
Hook to add custom options to toolbar in a derived class | |
| void | Called by cut and delete | ||
| void | Called by cut and delete | ||
| void | Duplicates current folder and all descendants | ||
| void | ExpandAll () |
||
| FString | ExportFolderList
(
TArray< FName > InFolders |
Construct folders export string to be used in clipboard | |
| void | FillFoldersSubMenu
(
UToolMenu* Menu |
||
| void | FillSelectionSubMenu
(
UToolMenu* Menun |
||
| FSceneOutlinerTreeItemPtr | FindParent
(
const ISceneOutlinerTreeItem& InItem |
Returns the parent tree item for a given item if it exists, nullptr otherwise. | |
| TSharedRef< TSet< FFolder > > | |||
| TArray< FName > | Get an array of folders to paste | ||
| const TMap< FName, TSharedPtr< ISceneOutlinerColumn > > & | GetColumns () |
Get the columns to be displayed in this outliner | |
| SceneOutliner::FTreeItemPtrEvent & | Event to react to a user double click on a item | ||
| TSharedPtr< FSceneOutlinerFilters > & | GetFilters () |
Get the outliner filter collection | |
| bool | Used to test if Outliner related selection changes have already been handled | ||
| SceneOutliner::FOnItemSelectionChanged & | Allow the system that use the scene outliner to react when it's selection is changed Note: This event will only be broadcast on a user input. | ||
| FName | Get the unique identifier associated with this outliner | ||
| TArray< FSceneOutlinerTreeItemPtr > | Returns the list of currently selected tree items | ||
| FSceneOutlinerItemSelection | GetSelection () |
Returns the currently selected items. | |
| void | GetSortedColumnIDs
(
TArray< FName >& OutColumnIDs |
||
| FSceneOutlinerTreeItemPtr | GetTreeItem
(
FSceneOutlinerTreeItemID, |
Retrieve an ISceneOutlinerTreeItem by its ID if it exists in the tree | |
| const TSharedPtr< SSceneOutlinerTreeView > & | GetTreeView () |
||
| bool | HasSelectorFocus
(
FSceneOutlinerTreeItemPtr Item |
||
| TArray< FName > | ImportFolderList
(
const FString& InStrBuffer |
Construct array of folders to be created based on input clipboard string | |
| bool | IsItemExpanded
(
const FSceneOutlinerTreeItemPtr& Item |
||
| bool | |||
| void | MoveSelectionTo
(
const FFolder& NewParent |
Moves the current selection to the specified folder path | |
| FReply | OnDragOverItem
(
const FDragDropEvent& Event, |
Called when a payload is dragged over an item | |
| void | OnDropPayload
(
ISceneOutlinerTreeItem& DropTarget, |
Called when a payload is dropped onto a target | |
| void | OnItemAdded
(
const FSceneOutlinerTreeItemID& ItemID, |
Instruct the outliner to perform an action on the specified item when it is created | |
| void | OnItemLabelChanged
(
FSceneOutlinerTreeItemPtr ChangedItem |
Handler for when a property changes on any item. Called by the mode | |
| TSharedPtr< SWidget > | Open a context menu for this scene outliner | ||
| bool | ParseDragDrop
(
FSceneOutlinerDragDropPayload& OutPayload, |
Parse a drag drop operation into a payload | |
| bool | PassesAllFilters
(
const FSceneOutlinerTreeItemPtr& Item |
||
| bool | PassesFilters
(
const ISceneOutlinerTreeItem& Item |
||
| bool | PassesTextFilter
(
const FSceneOutlinerTreeItemPtr& Item |
||
| void | PasteFoldersBegin
(
TArray< FName > InFolders |
Called by paste and duplicate | |
| void | Paste folders end logic | ||
| void | |||
| void | RemoveFolderFromSelection
(
const FName& FolderName |
Remove a folder from the selection of the scene outliner | |
| void | RemoveFromSelection
(
const TArray< FSceneOutlinerTreeItemPtr >& InItems, |
Remove a set of items from the current selection | |
| void | ScrollItemIntoView
(
const FSceneOutlinerTreeItemPtr& Item |
Miscellaneous helper functions Scroll the specified item into view | |
| void | SelectFoldersDescendants
(
bool bSelectImmediateChildrenOnly |
Called to select descendants of the currently selected folders | |
| void | SetColumnVisibility
(
FName ColumnId, |
||
| void | SetItemExpansion
(
const FSceneOutlinerTreeItemPtr& Item, |
||
| void | SetItemSelection
(
const TArray< FSceneOutlinerTreeItemPtr >& InItems, |
Set the selection status of a set of items in the scene outliner | |
| void | SetItemSelection
(
const FSceneOutlinerTreeItemPtr& InItem, |
Set the selection status of a single item in the scene outliner | |
| void | SetPendingRenameItem
(
const FSceneOutlinerTreeItemPtr& InItem |
Sets the next item to rename | |
| FSceneOutlinerDragValidationInfo | ValidateDrop
(
const ISceneOutlinerTreeItem& DropTarget, |
Validate a drag drop operation on a drop target |
Overridden from ISceneOutliner
| Type | Name | Description | |
|---|---|---|---|
| void | AddColumn
(
FName ColumnId, |
Add or replace a column of the scene outliner Note: The column id must match the id of the column returned by the factory | |
| int32 | AddFilter
(
const TSharedRef< FSceneOutlinerFilter >& Filter |
Add a filter to the scene outliner | |
| int32 | AddInteractiveFilter
(
const TSharedRef< FSceneOutlinerFilter >& Filter |
Add an interactive filter to the scene outliner | |
| void | CacheIconForClass
(
FName InClassName, |
Sets the cached icon for this class name | |
| bool | CanExecuteRenameRequest
(
const ISceneOutlinerTreeItem& ItemPtr |
Should the scene outliner accept a request to rename a object | |
| bool | CanPinItems
(
const TArray< FSceneOutlinerTreeItemPtr >& InItems |
Returns true if any of the items can be pinned. | |
| bool | Returns true if any of the selected items can be pinned | ||
| bool | Can the scene outliner rows generated on drag event | ||
| bool | CanUnpinItems
(
const TArray< FSceneOutlinerTreeItemPtr >& InItems |
Returns true if any of the items can be unpinned. | |
| bool | Returns true if any of the selected items can be unpinned | ||
| bool | Returns true if edit copy can be executed | ||
| bool | Returns true if edit cut can be executed | ||
| bool | Returns true if edit delete can be executed | ||
| void | FullRefresh () |
Tells the scene outliner that it should do a full refresh, which will clear the entire tree and rebuild it from scratch. | |
| const FSlateBrush * | GetCachedIconForClass
(
FName InClassName |
Gets the cached icon for this class name | |
| TArray< FName > | GetColumnIds () |
Return the name/Id of the columns of the scene outliner | |
| EColumnSortMode::Type | GetColumnSortMode
(
const FName ColumnId |
Return the sorting mode for the specified ColumnId | |
| TSharedPtr< FSceneOutlinerFilter > | GetFilterAtIndex
(
int32 Index |
Retrieve the filter at the specified index | |
| int32 | Get number of filters applied to the scene outliner | ||
| TAttribute< FText > | |||
| TSharedPtr< FSceneOutlinerTreeItemSCC > | GetItemSourceControl
(
const FSceneOutlinerTreeItemPtr& InItem |
Get the associated source control object for the specified item. | |
| const FSharedSceneOutlinerData & | |||
| const STreeView< FSceneOutlinerTreeItemPtr > & | GetTree () |
Get a const reference to the actual tree hierarchy | |
| bool | IsFilterActive
(
const FString& FilterName |
Check if a filter with the given name exists and is active in the filter bar for this Outliner (if this Outliner has a filter bar). | |
| bool | Returns true if edit paste can be executed | ||
| void | Pins an item list in the outliner. | ||
| void | Pin selected items | ||
| void | Refresh () |
Sends a requests to the Scene Outliner to refresh itself the next chance it gets | |
| void | RemoveColumn
(
FName ColumnId |
Remove a column of the scene outliner | |
| bool | RemoveFilter
(
const TSharedRef< FSceneOutlinerFilter >& Filter |
Remove a filter from the scene outliner | |
| bool | RemoveInteractiveFilter
(
const TSharedRef< FSceneOutlinerFilter >& Filter |
Remove an interactive filter from the scene outliner | |
| bool | Returns true if edit rename can be executed | ||
| void | Executes rename. | ||
| void | RequestSort () |
Request that the tree be sorted at a convenient time | |
| void | Set the keyboard focus to the outliner | ||
| void | SetSelection
(
const TFunctionRef< bool(ISceneOutlinerTreeItem&)> Selector |
Set the item selection of the outliner based on a selector function. | |
| void | UnpinItems
(
const TArray< FSceneOutlinerTreeItemPtr >& InItems |
Unpins an item list in the outliner. | |
| void | Unpins selected items |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FReply | Called after a key is pressed when this widget has focus (this event bubbles if not handled) | ||
| bool | Checks to see if this widget supports keyboard focus. Override this in derived classes. | ||
| void | SWidget interface |
Overridden from FEditorUndoClient
| Type | Name | Description | |
|---|---|---|---|
| void | PostRedo
(
bool bSuccess |
Signal that client should run any PostRedo code | |
| void | PostUndo
(
bool bSuccess |
Signal that client should run any PostUndo code |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| FParentsExpansionState | Structure containing information relating to the expansion state of parent items in the tree |