Navigation
API > API/Editor > API/Editor/SubobjectEditor
Wrapper struct that represents access an singe subobject that is used by slate as a layout for columns/rows should look like
| Name | FSubobjectEditorTreeNode |
| Type | class |
| Header File | /Engine/Source/Editor/SubobjectEditor/Public/SSubobjectEditor.h |
| Include Path | #include "SSubobjectEditor.h" |
Syntax
class FSubobjectEditorTreeNode : public TSharedFromThis< FSubobjectEditorTreeNode >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FSubobjectEditorTreeNode
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSubobjectEditorTreeNode
(
const FSubobjectDataHandle& DataSource, |
SSubobjectEditor.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FSubobjectEditorTreeNode() |
SSubobjectEditor.h |
Enums
Protected
| Name | Remarks |
|---|---|
| EFilteredState |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnRenameRequested | TBaseDelegate_NoParams< void > | Delegate for when the context menu requests a rename | SSubobjectEditor.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
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 | SSubobjectEditor.h | |
void ApplyFilteredStateToParent() |
Used to update the EFilteredState::ChildMatches flag for parent nodes, when this item's filtration state has changed | SSubobjectEditor.h | |
bool CanDelete() |
SSubobjectEditor.h | ||
bool CanRename() |
SSubobjectEditor.h | ||
bool CanReparent() |
SSubobjectEditor.h | ||
void CloseOngoingCreateTransaction() |
SSubobjectEditor.h | ||
FSubobjectEditorTreeNodePtrType FindChild
(
const FSubobjectDataHandle& InHandle |
Attempts to find the given subobject handle in the slate children on this node. Nullptr if none are found. | SSubobjectEditor.h | |
const TArray< FSubobjectEditorTreeNodePtrType > & GetChildren() |
SSubobjectEditor.h | ||
const UActorComponent * GetComponentTemplate() |
If this subobject is an actor component, then return its template. Otherwise it will return null | SSubobjectEditor.h | |
FSubobjectDataHandle GetDataHandle() |
Get the subobject handle that this slate node is representing. | SSubobjectEditor.h | |
FSubobjectData * GetDataSource() |
Get a pointer to the subobject data that this slate node is representing. | SSubobjectEditor.h | |
FString GetDisplayString() |
Get the display name of this single tree node | SSubobjectEditor.h | |
const UObject * GetObject
(
bool bEvenIfPendingKill |
SSubobjectEditor.h | ||
void GetOngoingCreateTransaction
(
TUniquePtr< FScopedTransaction >& OutPtr |
SSubobjectEditor.h | ||
FSubobjectEditorTreeNodePtrType GetParent() |
Get the slate parent of this single tree node | SSubobjectEditor.h | |
FOnRenameRequested GetRenameRequestedDelegate() |
SSubobjectEditor.h | ||
FName GetVariableName() |
SSubobjectEditor.h | ||
bool HasOngoingTransaction() |
SSubobjectEditor.h | ||
bool IsAttachedTo
(
FSubobjectEditorTreeNodePtrType InNodePtr |
Returns true if this node is attached to the given slate node. | SSubobjectEditor.h | |
bool IsChildSubtreeNode() |
SSubobjectEditor.h | ||
bool IsComponentNode() |
SSubobjectEditor.h | ||
bool IsDirectlyAttachedTo
(
FSubobjectEditorTreeNodePtrType InNodePtr |
SSubobjectEditor.h | ||
bool IsFlaggedForFiltration() |
Query that determines if this item should be filtered out or not | SSubobjectEditor.h | |
bool IsNativeComponent() |
SSubobjectEditor.h | ||
bool IsRootActorNode() |
Returns true if this is the root actor node of the tree. | SSubobjectEditor.h | |
bool IsSeperator() |
SSubobjectEditor.h | ||
bool IsValid() |
Returns true if this subobject data handle is valid. | SSubobjectEditor.h | |
bool MatchesFilterType
(
const UClass* InFilterType |
Returns whether the node will match the given type (for filtering) | SSubobjectEditor.h | |
void RefreshCachedChildFilterState
(
bool bUpdateParent |
Updates the EFilteredState::ChildMatches flag, based off of children's current state | SSubobjectEditor.h | |
| Refreshes this item's filtration state. Set bRecursive to 'true' to refresh any child nodes as well | SSubobjectEditor.h | ||
void RemoveChild
(
FSubobjectEditorTreeNodePtrType InChildNodePtr |
Remove the given slate node from our children array. | SSubobjectEditor.h | |
void SetCachedFilterState
(
bool bMatchesFilter, |
Sets this item's filtration state. | SSubobjectEditor.h | |
void SetOngoingCreateTransaction
(
TUniquePtr< FScopedTransaction > InTransaction |
SSubobjectEditor.h | ||
void SetRenameRequestedDelegate
(
FOnRenameRequested InRenameRequested |
Sets up the delegate for a rename operation | SSubobjectEditor.h |