Navigation
API > API/Editor > API/Editor/SceneOutliner
References
| Module | SceneOutliner |
| Header | /Engine/Source/Editor/SceneOutliner/Public/SSceneOutliner.h |
| Include | #include "SSceneOutliner.h" |
Syntax
struct FSceneOutlinerItemSelection
Remarks
Stores a set of selected items with parsing functions for the scene outliner
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TWeakPtr< ISceneOutlinerTreeItem > > | SelectedItems | Set of selected items |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSceneOutlinerItemSelection
(
const TArray< FSceneOutlinerTreeItemPtr >& InSelectedItems |
|||
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Add
(
FSceneOutlinerTreeItemPtr NewItem |
Add a new item to the selection | |
| void | ForEachItem
(
TFunctionRef< void(TreeType&)> Func |
Apply a function to each item of a specified type | |
| void | ForEachItem
(
TFunctionRef< void(FSceneOutlinerTreeItemPtr&)> Func |
Apply a function to every item in the selection regardless of type. | |
| void | Get all items of a specified type | ||
| void | |||
| TArray< DataType > | GetData
(
TFunctionRef< bool(const TWeakPtr< ISceneOutlinerTreeItem >&, DataType&)> Selector |
Use a selector to retrieve a specific data type from items in the selection. | |
| bool | Has () |
Returns true if the selection has an item of a specified type | |
| uint32 | Num () |
Returns the total number of items in the selection | |
| uint32 | Num () |
Returns the number of items of the specified types in the selection |