Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UEdGraphSchema |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/EdGraph/EdGraphSchema.h |
| Include Path | #include "EdGraph/EdGraphSchema.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UEdGraphSchema : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UEdGraphSchema
Derived Classes
UEdGraphSchema derived class hierarchy
- UAIGraphSchema
- UEdGraphSchema_K2
- UAnimationStateMachineSchema
- UObjectTreeGraphSchema
- UDataflowSchema
- UDataLinkEdGraphSchema
- UEdGraphSchema_CustomizableObject
- UEdGraphSchema_Niagara
- UEdGraphSchema_NiagaraSystemOverview
- UMaterialGraphSchema
- UMetasoundEditorGraphSchema
- UPCGEditorGraphSchema
- UReferenceViewerSchema
- URigVMEdGraphSchema
- USoundClassGraphSchema
- USoundCueGraphSchema
- USoundSubmixGraphSchema
- UEdGraphSchema_BehaviorTreeDecorator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UEdGraphSchema
(
const FObjectInitializer& ObjectInitializer |
EdGraph/EdGraphSchema.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AllowsFunctionVariants() |
Indicates whether variants of functions are allowed | EdGraph/EdGraphSchema.h | |
virtual bool ArePinsCompatible
(
const UEdGraphPin* PinA, |
Returns true if the types and directions of two pins are schema compatible. | EdGraph/EdGraphSchema.h | |
virtual bool ArePinTypesEquivalent
(
const FEdGraphPinType& PinA, |
Returns true if the types are schema Equivalent. | EdGraph/EdGraphSchema.h | |
virtual void BackwardCompatibilityNodeConversion
(
UEdGraph* Graph, |
EdGraph/EdGraphSchema.h | ||
virtual FReply BeginGraphDragAction
(
TSharedPtr< FEdGraphSchemaAction > InAction, |
Begins a drag and drop action to drag a graph action into another graph | EdGraph/EdGraphSchema.h | |
virtual FReply BeginGraphDragAction
(
TSharedPtr< FEdGraphSchemaAction > InAction |
Begins a drag and drop action to drag a graph action into another graph | EdGraph/EdGraphSchema.h | |
virtual void BreakNodeLinks
(
UEdGraphNode& TargetNode |
Breaks all links from/to a single node | EdGraph/EdGraphSchema.h | |
virtual void BreakPinLinks
(
UEdGraphPin& TargetPin, |
Breaks all links from/to a single pin | EdGraph/EdGraphSchema.h | |
virtual void BreakSinglePinLink
(
UEdGraphPin* SourcePin, |
Breaks the link between two nodes. | EdGraph/EdGraphSchema.h | |
virtual const FPinConnectionResponse CanCreateConnection
(
const UEdGraphPin* A, |
Determine if a connection can be created between two pins. | EdGraph/EdGraphSchema.h | |
virtual FPinConnectionResponse CanCreateNewNodes
(
UEdGraphPin* InSourcePin |
Check whether new nodes can be user-created (by dragging off pins etc.) | EdGraph/EdGraphSchema.h | |
virtual bool CanDuplicateGraph
(
UEdGraph* InSourceGraph |
Can this graph type be duplicated? | EdGraph/EdGraphSchema.h | |
virtual bool CanEncapuslateNode
(
UEdGraphNode const& TestNode |
Can TestNode be encapsulated into a child graph? | EdGraph/EdGraphSchema.h | |
virtual bool CanGraphBeDropped
(
TSharedPtr< FEdGraphSchemaAction > InAction |
Can the function graph be dropped into another graph | EdGraph/EdGraphSchema.h | |
virtual const FPinConnectionResponse CanMergeNodes
(
const UEdGraphNode* A, |
Determine if two nodes can be merged | EdGraph/EdGraphSchema.h | |
virtual const FPinConnectionResponse CanRelinkConnectionToPin
(
const UEdGraphPin* OldSourcePin, |
Determine if a connection can be relinked to the given pin. | EdGraph/EdGraphSchema.h | |
virtual bool CanShowDataTooltipForPin
(
const UEdGraphPin& Pin |
Checks to see if a pin supports Pin Value Inspection Tooltips | EdGraph/EdGraphSchema.h | |
| Check whether variables can be dropped onto the graph | EdGraph/EdGraphSchema.h | ||
virtual 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. | EdGraph/EdGraphSchema.h | |
virtual 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.). | EdGraph/EdGraphSchema.h | |
virtual FPinConnectionResponse CopyPinLinks
(
UEdGraphPin& CopyFromPin, |
Copies pin links from one pin to another without breaking the original links | EdGraph/EdGraphSchema.h | |
virtual bool CreateAutomaticConversionNodeAndConnections
(
UEdGraphPin* A, |
Try to create an automatic cast or other conversion node node to facilitate a connection between two pins. | EdGraph/EdGraphSchema.h | |
virtual FConnectionDrawingPolicy * CreateConnectionDrawingPolicy
(
int32 InBackLayerID, |
Returns new FConnectionDrawingPolicy from this schema | EdGraph/EdGraphSchema.h | |
virtual void CreateDefaultNodesForGraph
(
UEdGraph& Graph |
Populate new graph with any default nodes | EdGraph/EdGraphSchema.h | |
virtual bool CreatePromotedConnection
(
UEdGraphPin* A, |
Try to create a promotion from one type to another in order to make a connection between two pins. | EdGraph/EdGraphSchema.h | |
virtual UEdGraphNode * CreateSubstituteNode
(
UEdGraphNode* Node, |
Attempts to construct a substitute node that is unique within its graph. | EdGraph/EdGraphSchema.h | |
virtual bool DoesDefaultValueMatch
(
const UEdGraphPin& InPin, |
Returns if the pin's value matches the given value | EdGraph/EdGraphSchema.h | |
virtual bool DoesDefaultValueMatchAutogenerated
(
const UEdGraphPin& InPin |
Returns if the pin's value matches what the true (autogenerated) default value for that pin would be | EdGraph/EdGraphSchema.h | |
virtual bool DoesSupportPinWatching() |
An easy way to check to see if the current graph system supports pin watching. | EdGraph/EdGraphSchema.h | |
virtual void DroppedAssetsOnGraph
(
const TArray< struct FAssetData >& Assets, |
Called when asset(s) are dropped onto a graph background. | EdGraph/EdGraphSchema.h | |
virtual void DroppedAssetsOnGraph
(
const TArray< struct FAssetData >& Assets, |
EdGraph/EdGraphSchema.h | ||
virtual void DroppedAssetsOnNode
(
const TArray< struct FAssetData >& Assets, |
Called when asset(s) are dropped onto the specified node | EdGraph/EdGraphSchema.h | |
virtual void DroppedAssetsOnNode
(
const TArray< struct FAssetData >& Assets, |
EdGraph/EdGraphSchema.h | ||
virtual void DroppedAssetsOnPin
(
const TArray< struct FAssetData >& Assets, |
Called when asset(s) are dropped onto the specified pin | EdGraph/EdGraphSchema.h | |
virtual void DroppedAssetsOnPin
(
const TArray< struct FAssetData >& Assets, |
EdGraph/EdGraphSchema.h | ||
virtual UEdGraphPin * DropPinOnNode
(
UEdGraphNode* InTargetNode, |
Some schemas have nodes that support the user dynamically adding pins when dropping a connection on the node | EdGraph/EdGraphSchema.h | |
| Duplicate a given graph return the duplicate graph | EdGraph/EdGraphSchema.h | ||
virtual bool FadeNodeWhenDraggingOffPin
(
const UEdGraphNode* Node, |
When dragging off a pin, we want to duck the alpha of some nodes | EdGraph/EdGraphSchema.h | |
virtual void ForceVisualizationCacheClear() |
Forces cached visualization data to refresh | EdGraph/EdGraphSchema.h | |
virtual float GetActionFilteredWeight
(
const FEdGraphSchemaAction& InCurrentAction, |
Calculate the weight priority of a given action for the context menu. | EdGraph/EdGraphSchema.h | |
virtual PRAGMA_DISABLE_DEPRECATION_WARNINGS float GetActionFilteredWeight
(
const FGraphActionListBuilderBase::ActionGroup& InCurrentAction, |
EdGraph/EdGraphSchema.h | ||
virtual 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 | EdGraph/EdGraphSchema.h | |
virtual 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 | EdGraph/EdGraphSchema.h | |
virtual 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 | EdGraph/EdGraphSchema.h | |
virtual void GetContextMenuActions
(
UToolMenu* Menu, |
Gets actions that should be added to the right-click context menu for a node or pin | EdGraph/EdGraphSchema.h | |
| Returns context menu name | EdGraph/EdGraphSchema.h | ||
virtual TSharedPtr< FEdGraphSchemaAction > GetCreateCommentAction() |
Returns schema action to create comment from implemention | EdGraph/EdGraphSchema.h | |
virtual int32 GetCurrentVisualizationCacheID() |
Returns the current cache title refresh ID that is appropriate for the passed node | EdGraph/EdGraphSchema.h | |
virtual FString GetFindReferenceSearchTerm
(
const FEdGraphSchemaAction* InGraphAction |
Returns a custom reference string for searching within the blueprint based on a given action | EdGraph/EdGraphSchema.h | |
| Returns an optional category for a graph | EdGraph/EdGraphSchema.h | ||
virtual 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 | EdGraph/EdGraphSchema.h | |
virtual void GetGraphDisplayInformation
(
const UEdGraph& Graph, |
Gets display information for a graph | EdGraph/EdGraphSchema.h | |
virtual EGraphType GetGraphType
(
const UEdGraph* TestEdGraph |
EdGraph/EdGraphSchema.h | ||
virtual bool GetLocalVariables
(
const UEdGraph* InGraph, |
Returns the local variables related to the graph. | EdGraph/EdGraphSchema.h | |
virtual TSharedPtr< INameValidatorInterface > GetNameValidator
(
const UBlueprint* InBlueprintObj, |
Returns a name validator appropiate for the schema and object that is being named | EdGraph/EdGraphSchema.h | |
virtual int32 GetNodeSelectionCount
(
const UEdGraph* Graph |
Returns the currently selected graph node count | EdGraph/EdGraphSchema.h | |
virtual FName GetParentContextMenuName() |
Returns parent context menu name | EdGraph/EdGraphSchema.h | |
virtual FLinearColor GetPinColor
(
const UEdGraphPin* InPin |
Gets the draw color of a pin based on the UEdGraphPin. | EdGraph/EdGraphSchema.h | |
virtual FText GetPinDisplayName
(
const UEdGraphPin* Pin |
Get the name to show in the editor | EdGraph/EdGraphSchema.h | |
virtual FLinearColor GetPinTypeColor
(
const FEdGraphPinType& PinType |
Gets the draw color of a pin based on it's type. | EdGraph/EdGraphSchema.h | |
virtual FGraphSchemaSearchWeightModifiers GetSearchWeightModifiers() |
Get the weight modifiers from the console variable settings | EdGraph/EdGraphSchema.h | |
virtual FLinearColor GetSecondaryPinTypeColor
(
const FEdGraphPinType& PinType |
EdGraph/EdGraphSchema.h | ||
virtual void HandleGraphBeingDeleted
(
UEdGraph& GraphBeingRemoved |
Handle a graph being removed by the user (potentially removing associated bound nodes, etc...) | EdGraph/EdGraphSchema.h | |
virtual void InsertAdditionalActions
(
TArray< UBlueprint* > InBlueprints, |
Insert additional actions into the blueprint action menu | EdGraph/EdGraphSchema.h | |
virtual bool IsCacheVisualizationOutOfDate
(
int32 InVisualizationCacheID |
Checks if a CacheRefreshID is out of date | EdGraph/EdGraphSchema.h | |
virtual bool IsConnectionRelinkingAllowed
(
UEdGraphPin* InPin |
Is this schema supporting connection relinking for the given pin? | EdGraph/EdGraphSchema.h | |
FString IsCurrentPinDefaultValid
(
const UEdGraphPin* Pin |
Determine whether the current pin default values are valid | EdGraph/EdGraphSchema.h | |
virtual bool IsDelegateCategory
(
const FName Category |
Is given string a delegate category name ? | EdGraph/EdGraphSchema.h | |
virtual bool IsPinBeingWatched
(
UEdGraphPin const* Pin |
Checks to see if the specified pin is being watched by the graph's debug system. | EdGraph/EdGraphSchema.h | |
virtual FString IsPinDefaultValid
(
const UEdGraphPin* Pin, |
Determine if the supplied pin default values would be valid. | EdGraph/EdGraphSchema.h | |
virtual bool IsSelfPin
(
const UEdGraphPin& Pin |
Is self pin type? | EdGraph/EdGraphSchema.h | |
virtual bool IsTitleBarPin
(
const UEdGraphPin& Pin |
Query if the passed in pin is a title bar pin. | EdGraph/EdGraphSchema.h | |
virtual TSharedPtr< FEdGraphSchemaAction > MakeActionFromVariableDescription
(
const UEdGraph* InEdGraph, |
Generates a graph schema action from a graph and a variable description. | EdGraph/EdGraphSchema.h | |
virtual bool MarkBlueprintDirtyFromNewNode
(
UBlueprint* InBlueprint, |
Returns true if the schema wants to overdrive the behaviour of dirtying the blueprint on new node creation. | EdGraph/EdGraphSchema.h | |
virtual FPinConnectionResponse MovePinLinks
(
UEdGraphPin& MoveFromPin, |
Break links on this pin and create links instead on MoveToPin | EdGraph/EdGraphSchema.h | |
virtual void OnPinConnectionDoubleCicked
(
UEdGraphPin* PinA, |
Handles double-clicking on a pin<->pin connection | EdGraph/EdGraphSchema.h | |
virtual void OnPinConnectionDoubleCicked
(
UEdGraphPin* PinA, |
EdGraph/EdGraphSchema.h | ||
virtual void RecombinePin
(
UEdGraphPin* Pin |
Collapses a pin and its siblings back in to the original pin | EdGraph/EdGraphSchema.h | |
virtual void ReconstructNode
(
UEdGraphNode& TargetNode, |
Reconstructs a node | EdGraph/EdGraphSchema.h | |
virtual bool RequestVariableDropOnNode
(
UEdGraph* InGraph, |
Request to drop a variable on a node | EdGraph/EdGraphSchema.h | |
virtual bool RequestVariableDropOnNode
(
UEdGraph* InGraph, |
EdGraph/EdGraphSchema.h | ||
virtual bool RequestVariableDropOnPanel
(
UEdGraph* InGraph, |
Request to drop a variable on a panel | EdGraph/EdGraphSchema.h | |
virtual bool RequestVariableDropOnPanel
(
UEdGraph* InGraph, |
EdGraph/EdGraphSchema.h | ||
virtual bool RequestVariableDropOnPin
(
UEdGraph* InGraph, |
Request to drop a variable on a pin | EdGraph/EdGraphSchema.h | |
virtual bool RequestVariableDropOnPin
(
UEdGraph* InGraph, |
EdGraph/EdGraphSchema.h | ||
virtual void ResetPinToAutogeneratedDefaultValue
(
UEdGraphPin* Pin, |
Resets a pin back to it's autogenerated default value, optionally calling the default value change callbacks | EdGraph/EdGraphSchema.h | |
virtual bool SafeDeleteNodeFromGraph
(
UEdGraph* Graph, |
Perform any logic necessary to safely remove this node from the graph. | EdGraph/EdGraphSchema.h | |
virtual void SetNodePosition
(
UEdGraphNode* Node, |
Sets a node's position. | EdGraph/EdGraphSchema.h | |
virtual void SetNodePosition
(
UEdGraphNode* Node, |
EdGraph/EdGraphSchema.h | ||
virtual void SetPinBeingDroppedOnNode
(
UEdGraphPin* InSourcePin |
Let's the schema know about the next pin being dropped | EdGraph/EdGraphSchema.h | |
virtual bool ShouldAlwaysPurgeOnModification() |
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: | EdGraph/EdGraphSchema.h | |
virtual bool ShouldHidePinDefaultValue
(
UEdGraphPin* Pin |
If we should disallow viewing and editing of the supplied pin | EdGraph/EdGraphSchema.h | |
virtual bool ShouldShowAssetPickerForPin
(
UEdGraphPin* Pin |
Should the Pin in question display an asset picker | EdGraph/EdGraphSchema.h | |
| Implementaion notes: Consider returning true if your node context menu handles muliple context pins for node indexing and creation. | EdGraph/EdGraphSchema.h | ||
virtual void SplitPin
(
UEdGraphPin* Pin, |
Split a pin in to subelements | EdGraph/EdGraphSchema.h | |
virtual bool SupportsDropPinOnNode
(
UEdGraphNode* InTargetNode, |
Checks if the node supports dropping a pin on it | EdGraph/EdGraphSchema.h | |
virtual bool SupportsPinType
(
TWeakPtr< const FEdGraphSchemaAction > SchemaAction, |
Returns true if the schema supports the pin type through the schema action | EdGraph/EdGraphSchema.h | |
virtual bool SupportsPinTypeContainer
(
TWeakPtr< const FEdGraphSchemaAction > SchemaAction, |
Returns true if the schema supports the pin type through the schema action | EdGraph/EdGraphSchema.h | |
virtual bool TryCreateConnection
(
UEdGraphPin* A, |
Try to make a connection between two pins. | EdGraph/EdGraphSchema.h | |
virtual bool TryDeleteGraph
(
UEdGraph* GraphToDelete |
Try to delete the graph through the schema, return true if successful | EdGraph/EdGraphSchema.h | |
virtual bool TryRelinkConnectionTarget
(
UEdGraphPin* SourcePin, |
Try relinking the connection starting at the old source and target pins and relink it to the new target pin. | EdGraph/EdGraphSchema.h | |
| Try to rename a graph through the schema, return true if successful | EdGraph/EdGraphSchema.h | ||
virtual void TrySetDefaultObject
(
UEdGraphPin& Pin, |
Sets the object to the specified pin | EdGraph/EdGraphSchema.h | |
virtual void TrySetDefaultText
(
UEdGraphPin& InPin, |
Sets the text to the specified pin | EdGraph/EdGraphSchema.h | |
virtual void TrySetDefaultValue
(
UEdGraphPin& Pin, |
Sets the string to the specified pin; even if it is invalid it is still set. | EdGraph/EdGraphSchema.h | |
| Tentatively sets the category for a given graph | EdGraph/EdGraphSchema.h | ||
virtual bool TryToGetChildEvents
(
const UEdGraph* Graph, |
Try to retrieve the event child actions for a given graph | EdGraph/EdGraphSchema.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 CollectSearchTextWeightInfo
(
const FEdGraphSchemaAction& InCurrentAction, |
Build an array containing all search types, return the index of the first non-localized entry. | EdGraph/EdGraphSchema.h | |
PRAGMA_DISABLE_DEPRECATION_WARNINGSint32 CollectSearchTextWeightInfo
(
const FGraphActionListBuilderBase::ActionGroup& InCurrentAction, |
EdGraph/EdGraphSchema.h | ||
PRAGMA_DISABLE_DEPRECATION_WARNINGS void PrintSearchTextDebugInfo
(
const TArray< FString >& InFilterTerms, |
EdGraph/EdGraphSchema.h | ||
void PrintSearchTextDebugInfo
(
const TArray< FString >& InFilterTerms, |
EdGraph/EdGraphSchema.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static 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) | EdGraph/EdGraphSchema.h | |
static FName GetContextMenuName
(
UClass* InClass |
Returns context menu name for a given class | EdGraph/EdGraphSchema.h | |
static bool SetNodeMetaData
(
UEdGraphNode* Node, |
EdGraph/EdGraphSchema.h |