Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/EdGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UEdGraphSchema
- UAIGraphSchema
- UConversationGraphSchema
- UEdGraphSchema_BehaviorTree
- UEdGraphSchema_EnvironmentQuery
- UAnimationStateMachineSchema
- UDataflowSchema
- UEdGraphSchema_BehaviorTreeDecorator
- UEdGraphSchema_CustomizableObject
- UEdGraphSchema_K2
- UAnimationConduitGraphSchema
- UAnimationGraphSchema
- UAnimationCustomTransitionSchema
- UAnimationStateGraphSchema
- UAnimationTransitionSchema
- UGameplayAbilityGraphSchema
- UPropertyBagSchema
- UWidgetGraphSchema
- UEdGraphSchema_Niagara
- UEdGraphSchema_NiagaraSystemOverview
- UMaterialGraphSchema
- UMetasoundEditorGraphSchema
- UReferenceViewerSchema
- URigVMEdGraphSchema
- UControlRigGraphSchema
- USoundClassGraphSchema
- USoundCueGraphSchema
- USoundSubmixGraphSchema
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/EdGraph/EdGraphSchema.h |
| Include | #include "EdGraph/EdGraphSchema.h" |
Syntax
class UEdGraphSchema : public UObject
Constructors
| Type | Name | Description | |
|---|---|---|---|
UEdGraphSchema
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ArePinsCompatible
(
const UEdGraphPin* PinA, |
Returns true if the types and directions of two pins are schema compatible. | |
| bool | ArePinTypesEquivalent
(
const FEdGraphPinType& PinA, |
Returns true if the types are schema Equivalent. | |
| void | BackwardCompatibilityNodeConversion
(
UEdGraph* Graph, |
||
| FReply | BeginGraphDragAction
(
TSharedPtr< FEdGraphSchemaAction > InAction, |
Begins a drag and drop action to drag a graph action into another graph | |
| void | BreakNodeLinks
(
UEdGraphNode& TargetNode |
Breaks all links from/to a single node | |
| void | BreakPinLinks
(
UEdGraphPin& TargetPin, |
Breaks all links from/to a single pin | |
| void | BreakSinglePinLink
(
UEdGraphPin* SourcePin, |
Breaks the link between two nodes. | |
| const FPinConnectionResponse | CanCreateConnection
(
const UEdGraphPin* A, |
Determine if a connection can be created between two pins. | |
| FPinConnectionResponse | CanCreateNewNodes
(
UEdGraphPin* InSourcePin |
Check whether new nodes can be user-created (by dragging off pins etc.) | |
| bool | CanDuplicateGraph
(
UEdGraph* InSourceGraph |
Can this graph type be duplicated? | |
| bool | CanEncapuslateNode
(
UEdGraphNode const& TestNode |
Can TestNode be encapsulated into a child graph? | |
| bool | CanGraphBeDropped
(
TSharedPtr< FEdGraphSchemaAction > InAction |
Can the function graph be dropped into another graph | |
| const FPinConnectionResponse | CanMergeNodes
(
const UEdGraphNode* A, |
Determine if two nodes can be merged | |
| const FPinConnectionResponse | CanRelinkConnectionToPin
(
const UEdGraphPin* OldSourcePin, |
Determine if a connection can be relinked to the given pin. | |
| bool | CanShowDataTooltipForPin
(
const UEdGraphPin& Pin |
Checks to see if a pin supports Pin Value Inspection Tooltips | |
| bool | CanVariableBeDropped
(
UEdGraph* InGraph, |
Check whether variables can be dropped onto the graph | |
| bool | CategorizePinsByDirection
(
PinType* PinA, |
Categorizes two pins into an input pin and an output pin. Returns true if successful or false if they don't make sense as such (two inputs or two outputs) | |
| void | ClearPinWatch
(
UEdGraphPin const* Pin |
If the specified pin is currently being watched, then this will clear the watch from the graph's debug system. | |
| int32 | CollectSearchTextWeightInfo
(
const FGraphActionListBuilderBase::ActionGroup& InCurrentAction, |
Build an array containing all search types, return the index of the first non-localized entry. | |
| void | ConstructBasicPinTooltip
(
UEdGraphPin const& Pin, |
Takes the PinDescription and tacks on any other data important to the schema (things like the pin's type, etc.). | |
| FPinConnectionResponse | CopyPinLinks
(
UEdGraphPin& CopyFromPin, |
Copies pin links from one pin to another without breaking the original links | |
| bool | Try to create an automatic cast or other conversion node node to facilitate a connection between two pins. | ||
| FConnectionDrawingPolicy * | CreateConnectionDrawingPolicy
(
int32 InBackLayerID, |
Returns new FConnectionDrawingPolicy from this schema | |
| void | CreateDefaultNodesForGraph
(
UEdGraph& Graph |
Populate new graph with any default nodes | |
| bool | CreatePromotedConnection
(
UEdGraphPin* A, |
Try to create a promotion from one type to another in order to make a connection between two pins. | |
| UEdGraphNode * | CreateSubstituteNode
(
UEdGraphNode* Node, |
Attempts to construct a substitute node that is unique within its graph. | |
| bool | DoesDefaultValueMatch
(
const UEdGraphPin& InPin, |
Returns if the pin's value matches the given value | |
| bool | DoesDefaultValueMatchAutogenerated
(
const UEdGraphPin& InPin |
Returns if the pin's value matches what the true (autogenerated) default value for that pin would be | |
| bool | An easy way to check to see if the current graph system supports pin watching. | ||
| void | DroppedAssetsOnGraph
(
const TArray< struct FAssetData >& Assets, |
Called when asset(s) are dropped onto a graph background. | |
| void | DroppedAssetsOnNode
(
const TArray< struct FAssetData >& Assets, |
Called when asset(s) are dropped onto the specified node | |
| void | DroppedAssetsOnPin
(
const TArray< struct FAssetData >& Assets, |
Called when asset(s) are dropped onto the specified pin | |
| UEdGraphPin * | DropPinOnNode
(
UEdGraphNode* InTargetNode, |
Some schemas have nodes that support the user dynamically adding pins when dropping a connection on the node | |
| UEdGraph * | DuplicateGraph
(
UEdGraph* GraphToDuplicate |
Duplicate a given graph return the duplicate graph | |
| bool | FadeNodeWhenDraggingOffPin
(
const UEdGraphNode* Node, |
When dragging off a pin, we want to duck the alpha of some nodes | |
| void | Forces cached visualization data to refresh | ||
| float | GetActionFilteredWeight
(
const FGraphActionListBuilderBase::ActionGroup& InCurrentAction, |
Calculate the weight priority of a given action for the context menu. | |
| void | GetAssetsGraphHoverMessage
(
const TArray< FAssetData >& Assets, |
Allows schema to generate a tooltip (icon & message) when the specified asset(s) are dragged over the specified graph | |
| void | GetAssetsNodeHoverMessage
(
const TArray< struct FAssetData >& Assets, |
Allows schema to generate a tooltip (icon & message) when the specified asset(s) are dragged over the specified node | |
| void | GetAssetsPinHoverMessage
(
const TArray< struct FAssetData >& Assets, |
Allows schema to generate a tooltip (icon & message) when the specified asset(s) are dragged over the specified pin | |
| void | GetContextMenuActions
(
UToolMenu* Menu, |
Gets actions that should be added to the right-click context menu for a node or pin | |
| FName | Returns context menu name | ||
| FName | GetContextMenuName
(
UClass* InClass |
Returns context menu name for a given class | |
| TSharedPtr< FEdGraphSchemaAction > | Returns schema action to create comment from implemention | ||
| int32 | Returns the current cache title refresh ID that is appropriate for the passed node | ||
| FString | GetFindReferenceSearchTerm
(
const FEdGraphSchemaAction* InGraphAction |
Returns a custom reference string for searching within the blueprint based on a given action | |
| FText | GetGraphCategory
(
const UEdGraph* InGraph |
Returns an optional category for a graph | |
| void | GetGraphContextActions
(
FGraphContextMenuBuilder& ContextMenuBuilder |
Get all actions that can be performed when right clicking on a graph or drag-releasing on a graph from a pin | |
| void | GetGraphDisplayInformation
(
const UEdGraph& Graph, |
Gets display information for a graph | |
| EGraphType | GetGraphType
(
const UEdGraph* TestEdGraph |
||
| bool | GetLocalVariables
(
const UEdGraph* InGraph, |
Returns the local variables related to the graph. | |
| TSharedPtr< INameValidatorInterface > | GetNameValidator
(
const UBlueprint* InBlueprintObj, |
Returns a name validator appropiate for the schema and object that is being named | |
| int32 | GetNodeSelectionCount
(
const UEdGraph* Graph |
Returns the currently selected graph node count | |
| FName | Returns parent context menu name | ||
| FText | GetPinDisplayName
(
const UEdGraphPin* Pin |
Get the name to show in the editor | |
| FLinearColor | GetPinTypeColor
(
const FEdGraphPinType& PinType |
Gets the draw color of a pin based on it's type. | |
| FGraphSchemaSearchWeightModifiers | Get the weight modifiers from the console variable settings | ||
| FLinearColor | GetSecondaryPinTypeColor
(
const FEdGraphPinType& PinType |
||
| void | HandleGraphBeingDeleted
(
UEdGraph& GraphBeingRemoved |
Handle a graph being removed by the user (potentially removing associated bound nodes, etc...) | |
| void | InsertAdditionalActions
(
TArray< UBlueprint* > InBlueprints, |
Insert additional actions into the blueprint action menu | |
| bool | IsCacheVisualizationOutOfDate
(
int32 InVisualizationCacheID |
Checks if a CacheRefreshID is out of date | |
| bool | IsConnectionRelinkingAllowed
(
UEdGraphPin* InPin |
Is this schema supporting connection relinking for the given pin? | |
| FString | IsCurrentPinDefaultValid
(
const UEdGraphPin* Pin |
Determine whether the current pin default values are valid | |
| bool | IsDelegateCategory
(
const FName Category |
Is given string a delegate category name ? | |
| bool | IsPinBeingWatched
(
UEdGraphPin const* Pin |
Checks to see if the specified pin is being watched by the graph's debug system. | |
| FString | IsPinDefaultValid
(
const UEdGraphPin* Pin, |
Determine if the supplied pin default values would be valid. | |
| bool | IsSelfPin
(
const UEdGraphPin& Pin |
Is self pin type? | |
| bool | IsTitleBarPin
(
const UEdGraphPin& Pin |
Query if the passed in pin is a title bar pin. | |
| TSharedPtr< FEdGraphSchemaAction > | MakeActionFromVariableDescription
(
const UEdGraph* InEdGraph, |
Generates a graph schema action from a graph and a variable description. | |
| bool | MarkBlueprintDirtyFromNewNode
(
UBlueprint* InBlueprint, |
Returns true if the schema wants to overdrive the behaviour of dirtying the blueprint on new node creation. | |
| FPinConnectionResponse | MovePinLinks
(
UEdGraphPin& MoveFromPin, |
Break links on this pin and create links instead on MoveToPin | |
| void | OnPinConnectionDoubleCicked
(
UEdGraphPin* PinA, |
Handles double-clicking on a pin<->pin connection | |
| void | PrintSearchTextDebugInfo
(
const TArray< FString >& InFilterTerms, |
||
| void | RecombinePin
(
UEdGraphPin* Pin |
Collapses a pin and its siblings back in to the original pin | |
| void | ReconstructNode
(
UEdGraphNode& TargetNode, |
Reconstructs a node | |
| bool | RequestVariableDropOnNode
(
UEdGraph* InGraph, |
Request to drop a variable on a node | |
| bool | RequestVariableDropOnPanel
(
UEdGraph* InGraph, |
Request to drop a variable on a panel | |
| bool | RequestVariableDropOnPin
(
UEdGraph* InGraph, |
Request to drop a variable on a pin | |
| void | ResetPinToAutogeneratedDefaultValue
(
UEdGraphPin* Pin, |
Resets a pin back to it's autogenerated default value, optionally calling the default value change callbacks | |
| bool | SafeDeleteNodeFromGraph
(
UEdGraph* Graph, |
Perform any logic necessary to safely remove this node from the graph. | |
| bool | SetNodeMetaData
(
UEdGraphNode* Node, |
||
| void | SetNodePosition
(
UEdGraphNode* Node, |
Sets a node's position. | |
| void | SetPinBeingDroppedOnNode
(
UEdGraphPin* InSourcePin |
Let's the schema know about the next pin being dropped | |
| bool | When a node is removed, this method determines whether we should remove it immediately or use the old (slower) code path that results in all node being recreated: | ||
| bool | ShouldHidePinDefaultValue
(
UEdGraphPin* Pin |
If we should disallow viewing and editing of the supplied pin | |
| bool | ShouldShowAssetPickerForPin
(
UEdGraphPin* Pin |
Should the Pin in question display an asset picker | |
| void | SplitPin
(
UEdGraphPin* Pin, |
Split a pin in to subelements | |
| bool | SupportsDropPinOnNode
(
UEdGraphNode* InTargetNode, |
Checks if the node supports dropping a pin on it | |
| bool | SupportsPinType
(
TWeakPtr< const FEdGraphSchemaAction > SchemaAction, |
Returns true if the schema supports the pin type through the schema action | |
| bool | SupportsPinTypeContainer
(
TWeakPtr< const FEdGraphSchemaAction > SchemaAction, |
Returns true if the schema supports the pin type through the schema action | |
| bool | TryCreateConnection
(
UEdGraphPin* A, |
Try to make a connection between two pins. | |
| bool | TryDeleteGraph
(
UEdGraph* GraphToDelete |
Try to delete the graph through the schema, return true if successful | |
| bool | TryRelinkConnectionTarget
(
UEdGraphPin* SourcePin, |
Try relinking the connection starting at the old source and target pins and relink it to the new target pin. | |
| bool | TryRenameGraph
(
UEdGraph* GraphToRename, |
Try to rename a graph through the schema, return true if successful | |
| void | TrySetDefaultObject
(
UEdGraphPin& Pin, |
Sets the object to the specified pin | |
| void | TrySetDefaultText
(
UEdGraphPin& InPin, |
Sets the text to the specified pin | |
| void | TrySetDefaultValue
(
UEdGraphPin& Pin, |
Sets the string to the specified pin; even if it is invalid it is still set. | |
| FReply | TrySetGraphCategory
(
const UEdGraph* InGraph, |
Tentatively sets the category for a given graph | |
| bool | TryToGetChildEvents
(
const UEdGraph* Graph, |
Try to retrieve the event child actions for a given graph |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| FReply | BeginGraphDragAction
(
TSharedPtr< FEdGraphSchemaAction > InAction |
Use version that takes FPointerEvent instead. |