Navigation
API > API/Editor > API/Editor/Kismet
Inheritance Hierarchy
- TSharedFromThis
- FSCSEditorTreeNode
- FSCSEditorTreeNodeActorBase
- FSCSEditorTreeNodeChildActor
- FSCSEditorTreeNodeRootActor
- FSCSEditorTreeNodeComponentBase
- FSCSEditorTreeNodeComponent
- FSCSEditorTreeNodeInstanceAddedComponent
- FSCSEditorTreeNodeInstancedInheritedComponent
- FSCSEditorTreeNodeSeparator
References
| Module | Kismet |
| Header | /Engine/Source/Editor/Kismet/Public/SSCSEditor.h |
| Include | #include "SSCSEditor.h" |
Syntax
class FSCSEditorTreeNode : public TSharedFromThis< FSCSEditorTreeNode >
Remarks
Wrapper class for nodes displayed in the SCS (Simple Construction Script) editor tree widget.
Variables
| Type | Name | Description | |
|---|---|---|---|
| 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. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSCSEditorTreeNode
(
FSCSEditorTreeNode::ENodeType InNodeType |
Constructs an empty tree node. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSCSEditorTreeNodePtrType | Adds a child node for the given SCS node. | ||
| void | AddChild
(
FSCSEditorTreeNodePtrType InChildNodePtr |
Adds the given node as a child node. | |
| FSCSEditorTreeNodePtrType | AddChildFromComponent
(
UActorComponent* InComponentTemplate |
Adds a child node for the given component template. | |
| void | Used to update the EFilteredState::ChildMatches flag for parent nodes, when this item's filtration state has changed | ||
| bool | CanDelete () |
||
| bool | CanEdit () |
||
| bool | CanRename () |
||
| bool | CanReparent () |
||
| void | Ends the 'Create + enter initial name' transaction of this node. | ||
| FSCSEditorTreeNodePtrType | FactoryNodeFromComponent
(
UActorComponent* InComponent |
Creates the correct type of node based on the component (instanced or not, etc...) | |
| FSCSEditorTreeNodePtrType | Attempts to find a reference to the child node that matches the given SCS node. | ||
| FSCSEditorTreeNodePtrType | FindChild
(
const UActorComponent* InComponentTemplate, |
Attempts to find a reference to the child node that matches the given component template. | |
| FSCSEditorTreeNodePtrType | Attempts to find a reference to the child node that matches the given component variable or instance name. | ||
| FSCSEditorTreeNodePtrType | FindClosestParent
(
TArray< FSCSEditorTreeNodePtrType > InNodes |
Finds the closest ancestor node in the given node set. | |
| UActorComponent * | FindComponentInstanceInActor
(
const AActor* InActor |
Finds the component instance represented by this node contained within a given Actor instance. | |
| USCS_Node * | FindSCSNodeForInstance
(
const UActorComponent* InstanceComponent, |
Tries to find a SCS node that was likely responsible for creating the specified instance component. Note: This is not always possible to do! | |
| FSCSEditorActorNodePtrType | |||
| UBlueprint * | GetBlueprint () |
||
| FSCSEditorChildActorNodePtrType | Returns the associated child actor node if applicable to this node type. | ||
| const TArray< FSCSEditorTreeNodePtrType > & | GetChildren () |
||
| UActorComponent * | GetComponentTemplate
(
bool bEvenIfPendingKill |
Deliberately non-virtual, for performance reasons. | |
| FText | |||
| FString | |||
| T * | GetEditableObjectForBlueprint
(
UBlueprint* InBlueprint |
May not be the same as the value returned by GetObject(). | |
| T * | Provides derived classes with non-const access to the object represented by this node (e.g. for rename operations, etc.). This should not be made public. | ||
| FName | GetNodeID () |
||
| ENodeType | GetNodeType () |
||
| const T * | GetObject
(
bool bEvenIfPendingKill |
Deliberately non-virtual, for performance reasons. | |
| UActorComponent * | GetOrCreateEditableComponentTemplate
(
UBlueprint* ActualEditedBlueprint |
Derived classes should override GetOrCreateEditableObjectForBlueprint(). | |
| UObject * | GetOrCreateEditableObjectForBlueprint
(
UBlueprint* InBlueprint |
Derived classes can override to create and/or return a reference to an alternate editable object. | |
| FSCSEditorTreeNodePtrType | GetParent () |
||
| USCS_Node * | GetSCSNode () |
||
| FName | |||
| bool | IsActorNode () |
||
| bool | IsAttachedTo
(
FSCSEditorTreeNodePtrType InNodePtr |
||
| bool | |||
| bool | |||
| bool | |||
| bool | IsDirectlyAttachedTo
(
FSCSEditorTreeNodePtrType InNodePtr |
||
| bool | Query that determines if this item should be filtered out or not | ||
| bool | |||
| bool | |||
| bool | IsInstanced () |
||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | MatchesFilterType
(
const UClass* InFilterType |
Returns whether the node will match the given type (for filtering) | |
| void | OnCompleteRename
(
const FText& InNewName |
Renames the object or variable represented by this node | |
| void | OnRequestRename
(
TUniquePtr< FScopedTransaction > OngoingCreateTransaction |
Requests a rename on the node. | |
| 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
(
FSCSEditorTreeNodePtrType InChildNodePtr |
Removes the given node from the list of child nodes. | |
| void | Called when this node is being removed via a RemoveChild call. | ||
| void | SetActorRootNode
(
FSCSEditorActorNodePtrType InActorNode |
Sets the actor root to the given node for this node along with any children. | |
| void | SetCachedFilterState
(
bool bMatchesFilter, |
Sets this item's filtration state. | |
| void | Sets the internal object instance represented by this node. | ||
| void | SetRenameRequestedDelegate
(
FOnRenameRequested InRenameRequested |
Sets up the delegate for a rename operation |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EFilteredState | |||
| ENodeType |
Typedefs
| Name | Description |
|---|---|
| FOnRenameRequested | Delegate for when the context menu requests a rename |