Navigation
API > API/Editor > API/Editor/SubobjectEditor
Inheritance Hierarchy
- TSharedFromThis
- FSubobjectEditorTreeNode
References
| Module | SubobjectEditor |
| Header | /Engine/Source/Editor/SubobjectEditor/Public/SSubobjectEditor.h |
| Include | #include "SSubobjectEditor.h" |
Syntax
class FSubobjectEditorTreeNode : public TSharedFromThis< FSubobjectEditorTreeNode >
Remarks
Wrapper struct that represents access an singe subobject that is used by slate as a layout for columns/rows should look like
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8: 1 | bIsSeperator | A flag that indicates that this is a separator slate node and has no valid data | |
| TArray< FSubobjectEditorTreeNodePtrType > | Children | Any children that this subobject has in the hierarchy, used to collapsed things within in the tree | |
| FSubobjectDataHandle | DataHandle | The data source of this subobject | |
| uint8 | FilterFlags | ||
| TUniquePtr< FScopedTransaction > | OngoingCreateTransaction | Scope the creation of a node which ends when the initial 'name' is given/accepted by the user, which can be several frames after the node was actually created. | |
| FSubobjectEditorTreeNodePtrType | ParentNodePtr | Pointer to the parent of this subobject | |
| FOnRenameRequested | RenameRequestedDelegate | Handles rename requests |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSubobjectEditorTreeNode
(
const FSubobjectDataHandle& DataSource, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddChild
(
FSubobjectEditorTreeNodePtrType AttachToPtr |
Add the given slate node to our child array and set it's parent to us This had no effect on the actual structure of the subobjects this node represents it is purely visual | |
| void | Used to update the EFilteredState::ChildMatches flag for parent nodes, when this item's filtration state has changed | ||
| bool | CanDelete () |
||
| bool | CanRename () |
||
| bool | CanReparent () |
||
| void | |||
| FSubobjectEditorTreeNodePtrType | FindChild
(
const FSubobjectDataHandle& InHandle |
Attempts to find the given subobject handle in the slate children on this node. Nullptr if none are found. | |
| const TArray< FSubobjectEditorTreeNodePtrType > & | GetChildren () |
||
| const UActorComponent * | If this subobject is an actor component, then return its template. Otherwise it will return null | ||
| FSubobjectDataHandle | Get the subobject handle that this slate node is representing. | ||
| FSubobjectData * | Get a pointer to the subobject data that this slate node is representing. | ||
| FString | Get the display name of this single tree node | ||
| const UObject * | GetObject
(
bool bEvenIfPendingKill |
||
| void | GetOngoingCreateTransaction
(
TUniquePtr< FScopedTransaction >& OutPtr |
||
| FSubobjectEditorTreeNodePtrType | GetParent () |
Get the slate parent of this single tree node | |
| FOnRenameRequested | |||
| FName | |||
| bool | |||
| bool | IsAttachedTo
(
FSubobjectEditorTreeNodePtrType InNodePtr |
Returns true if this node is attached to the given slate node. | |
| bool | |||
| bool | |||
| bool | IsDirectlyAttachedTo
(
FSubobjectEditorTreeNodePtrType InNodePtr |
||
| bool | Query that determines if this item should be filtered out or not | ||
| bool | |||
| bool | Returns true if this is the root actor node of the tree. | ||
| bool | IsSeperator () |
||
| bool | IsValid () |
Returns true if this subobject data handle is valid. | |
| bool | MatchesFilterType
(
const UClass* InFilterType |
Returns whether the node will match the given type (for filtering) | |
| void | RefreshCachedChildFilterState
(
bool bUpdateParent |
Updates the EFilteredState::ChildMatches flag, based off of children's current state | |
| bool | RefreshFilteredState
(
const UClass* InFilterType, |
Refreshes this item's filtration state. Set bRecursive to 'true' to refresh any child nodes as well | |
| void | RemoveChild
(
FSubobjectEditorTreeNodePtrType InChildNodePtr |
Remove the given slate node from our children array. | |
| void | SetCachedFilterState
(
bool bMatchesFilter, |
Sets this item's filtration state. | |
| void | SetOngoingCreateTransaction
(
TUniquePtr< FScopedTransaction > InTransaction |
||
| void | SetRenameRequestedDelegate
(
FOnRenameRequested InRenameRequested |
Sets up the delegate for a rename operation |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EFilteredState |
Typedefs
| Name | Description |
|---|---|
| FOnRenameRequested | Delegate for when the context menu requests a rename |