Navigation
API > API/Editor > API/Editor/BlueprintEditorLibrary
| Name | UBlueprintEditorLibrary |
| Type | class |
| Header File | /Engine/Source/Editor/BlueprintEditorLibrary/Public/BlueprintEditorLibrary.h |
| Include Path | #include "BlueprintEditorLibrary.h" |
Syntax
UCLASS (MinimalAPI)
class UBlueprintEditorLibrary : public UBlueprintFunctionLibrary
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBlueprintFunctionLibrary → UBlueprintEditorLibrary
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBlueprintEditorLibrary
(
const FObjectInitializer& ObjectInitializer |
BlueprintEditorLibrary.h |
Functions
Public
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool AddEventDispatcher
(
UBlueprint* Blueprint, |
Creates a new event dispatcher on the Blueprint with the given name. | BlueprintEditorLibrary.h |
|
static bool AddEventDispatcherParameter
(
UBlueprint* Blueprint, |
Adds a parameter to an event dispatcher's signature. | BlueprintEditorLibrary.h |
|
static UK2Node_Event * AddEventOverride
(
UBlueprint* Blueprint, |
Creates an event-override node in the Blueprint's event graph for an inherited event-shape function. | BlueprintEditorLibrary.h |
|
static UEdGraph * AddFunctionGraph
(
UBlueprint* Blueprint, |
Adds a function to the given blueprint | BlueprintEditorLibrary.h |
|
static UEdGraph * AddFunctionOverride
(
UBlueprint* Blueprint, |
Creates a function-graph override of an inherited function. | BlueprintEditorLibrary.h |
|
static bool AddMemberVariable
(
UBlueprint* Blueprint, |
Adds a member variable to the specified blueprint with the specified type. | BlueprintEditorLibrary.h |
|
static bool AddMemberVariableWithValue
(
UBlueprint* Blueprint, |
Adds a member variable to the specified blueprint inferring the type from a provided value. | BlueprintEditorLibrary.h |
|
static void ChangeMemberVariableType
(
UBlueprint* Blueprint, |
Changes the specified member variable's type - inherited variables must have their type changed at the point of declaration | BlueprintEditorLibrary.h |
|
static void CompareAssetSaveVersionTo
(
const UObject* Asset, |
Compares the given assets save version to the VersionToCheck. | BlueprintEditorLibrary.h |
|
static void CompareSoftObjectSaveVersionTo
(
const TSoftObjectPtr< UObject > ObjectToCheck, |
Compares the given soft object's save version to the VersionToCheck. | BlueprintEditorLibrary.h |
|
static bool CompileBlueprint
(
UBlueprint* Blueprint |
Compiles the given blueprint. | BlueprintEditorLibrary.h |
|
static UBlueprint * CreateBlueprintAssetWithParent
(
const FString& AssetPath, |
Creates a blueprint based on a specific parent, honoring registered custom blueprint types | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindConditionPin
(
const UK2Node_IfThenElse* Node |
Finds the Condition pin on this node | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindDataInputPin
(
const UK2Node* Node |
Returns the single data input pin associated with this node, returning default pin if there are multiple or no input(s) | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindElsePin
(
const UK2Node_IfThenElse* Node |
End UK2Node_CreateDelegate extension/script methods | BlueprintEditorLibrary.h |
|
static UEdGraph * FindEventGraph
(
UBlueprint* Blueprint |
Finds the event graph of the given blueprint. | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindExecutePin
(
const UK2Node* Node |
Returns the 'execute' or 'do' pin associated with this node, if any | BlueprintEditorLibrary.h |
|
static UEdGraph * FindGraph
(
UBlueprint* Blueprint, |
Finds the graph with the given name on the blueprint. Null if it doesn't have one. | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindInputPin
(
const UK2Node* Node, |
Returns an input pin specified by name and, optionally, type | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindInputPinByIndex
(
const UK2Node* Node, |
Returns an input pin specified by index and, optionally, type | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindOutputPin
(
const UK2Node* Node, |
Returns an output pin specified by name and, optionally, type | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindOutputPinByIndex
(
const UK2Node* Node, |
Returns an output pin specified by index and, optionally, type | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindResultPin
(
const UK2Node* Node |
Returns the single data output pin associated with this node, returning default pin if there are multiple or no output(s) | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindSelfPin
(
const UK2Node* Node |
Returns the self pin associated with this node, if any | BlueprintEditorLibrary.h |
|
static FBlueprintGraphPin FindThenPin
(
const UK2Node* Node |
Returns the 'then' pin associated with this node, if any | BlueprintEditorLibrary.h |
|
static bool GatherUnusedVariables
(
const UBlueprint* Blueprint, |
Gathers any unused blueprint variables and populates the given array of FPropertys | BlueprintEditorLibrary.h | |
static UClass * GeneratedClass
(
UBlueprint* BlueprintObj |
Gets the class generated when this blueprint is compiled | BlueprintEditorLibrary.h |
|
static bool Generic_AddMemberVariableWithValue
(
UBlueprint* Blueprint, |
BlueprintEditorLibrary.h |
|
|
static FEdGraphPinType GetArrayType
(
const FEdGraphPinType& ContainedType |
BlueprintEditorLibrary.h |
|
|
static FEdGraphPinType GetBasicTypeByName
(
FName TypeName |
BlueprintEditorLibrary.h |
|
|
static UBlueprint * GetBlueprintAsset
(
UObject* Object |
Finds the UBlueprint associated with the object, locally searching the object graph for a UBlueprint associated with an asset object. | BlueprintEditorLibrary.h |
|
static UBlueprint * GetBlueprintForClass
(
UClass* Class, |
Looks up the UBlueprint that generated the provided class, if any. | BlueprintEditorLibrary.h |
|
static UClass * GetBlueprintParentClass
(
const UBlueprint* Blueprint |
Returns the parent class of the given Blueprint. | BlueprintEditorLibrary.h |
|
static FText GetBlueprintVariableCategory
(
UBlueprint* Blueprint, |
Gets the user-defined category of a Blueprint member variable. | BlueprintEditorLibrary.h |
|
static EBlueprintVariableReplication GetBlueprintVariableReplication
(
UBlueprint* Blueprint, |
Gets the replication mode of a Blueprint variable. | BlueprintEditorLibrary.h |
|
static FEdGraphPinType GetClassReferenceType
(
const UClass* ClassType |
BlueprintEditorLibrary.h |
|
|
static FLinearColor GetCommentColor
(
const UEdGraphNode_Comment* CommentNode |
Gets the background color of a comment node. | BlueprintEditorLibrary.h |
|
static FString GetCommentText
(
const UEdGraphNode_Comment* CommentNode |
Returns the comment text of a comment node. | BlueprintEditorLibrary.h |
|
static FName GetCreateDelegateFunction
(
const UK2Node_CreateDelegate* Node |
Returns the selected function name on a Create Event node (the dropdown value). | BlueprintEditorLibrary.h |
|
static FString GetCurrentEngineVersion () |
Returns a string which represents the current engine version (FEngineVersion::Current()) | BlueprintEditorLibrary.h |
|
static FEdGraphPinType GetMapType
(
const FEdGraphPinType& KeyType, |
BlueprintEditorLibrary.h |
|
|
static TOptional< FEdGraphPinType > GetMemberVariableType
(
const UBlueprint* Blueprint, |
Returns the type of a member variable, unset if no variable is found. | BlueprintEditorLibrary.h |
|
| Returns this node's menu category | BlueprintEditorLibrary.h |
|
|
static FIntPoint GetNodePos
(
const UK2Node* Node |
Returns this node's visual position in the graph | BlueprintEditorLibrary.h |
|
static TArray< UK2Node * > GetNodesInComment
(
const UEdGraphNode_Comment* CommentNode |
Returns the K2 nodes contained within the given comment node. | BlueprintEditorLibrary.h |
|
static FVector2D GetNodeSize
(
const UEdGraphNode* Node |
Returns the size (width, height) of a node as stored in the graph data. | BlueprintEditorLibrary.h |
|
| Returns this node's title, as used when the node is displayed in a list | BlueprintEditorLibrary.h |
|
|
static FEdGraphPinType GetObjectReferenceType
(
const UClass* ObjectType |
BlueprintEditorLibrary.h |
|
|
static FString GetSavedByEngineVersion
(
const UObject* Asset |
Returns a string representation of the engine version which the given asset was saved with. | BlueprintEditorLibrary.h |
|
static FEdGraphPinType GetSetType
(
const FEdGraphPinType& ContainedType |
BlueprintEditorLibrary.h |
|
|
static FEdGraphPinType GetStructType
(
const UScriptStruct* StructType |
BlueprintEditorLibrary.h |
|
|
static TArray< FBlueprintGraphPin > ListAllPins
(
const UK2Node* Node, |
Begin UK2Node extension/script methods. | BlueprintEditorLibrary.h |
|
static TArray< FName > ListCompatibleFunctionsForDelegate
(
const UK2Node_CreateDelegate* Node |
Lists functions compatible with the delegate signature of a Create Event node. | BlueprintEditorLibrary.h |
|
static TArray< FName > ListEventDispatchers
(
const UBlueprint* Blueprint |
Returns the names of all event dispatchers defined on the Blueprint. | BlueprintEditorLibrary.h |
|
static TArray< FBlueprintFunctionInfo > ListEvents
(
UBlueprint* Blueprint |
Lists all events visible on this Blueprint: locally defined custom events, overridable parent-class events, and event-shape interface members. | BlueprintEditorLibrary.h |
|
static TArray< FBlueprintFunctionInfo > ListFunctions
(
UBlueprint* Blueprint |
Lists all non-event functions visible on this Blueprint: locally defined function graphs, overridable parent-class functions, and functions declared on interfaces (both explicitly implemented and inherited through a natively-implemented interface). | BlueprintEditorLibrary.h |
|
static void ListGraphNames
(
const UBlueprint* Blueprint, |
Lists the names of the editable graphs in the BP | BlueprintEditorLibrary.h |
|
static TArray< UEdGraph * > ListGraphs
(
UBlueprint* Blueprint |
Lists all of the graphs that a Blueprint contains. | BlueprintEditorLibrary.h |
|
static TArray< FBlueprintGraphPin > ListInputPins
(
const UK2Node* Node |
Returns all visible input pins on this node | BlueprintEditorLibrary.h |
|
static void ListMemberVariableNames
(
const UBlueprint* Blueprint, |
Lists the names of the member variables in the BP. | BlueprintEditorLibrary.h |
|
static TArray< FBlueprintGraphPin > ListOutputPins
(
const UK2Node* Node |
Returns all visible output pins on this node | BlueprintEditorLibrary.h |
|
static FString PinTypeToJsonSchema
(
const FEdGraphPinType& PinType, |
@ A json schema string describing the type | BlueprintEditorLibrary.h |
|
static void RefreshAllOpenBlueprintEditors() |
Refresh any open blueprint editors | BlueprintEditorLibrary.h |
|
static void RefreshOpenEditorsForBlueprint
(
const UBlueprint* BP |
Attempt to refresh any open blueprint editors for the given asset | BlueprintEditorLibrary.h |
|
static bool RemoveEventDispatcher
(
UBlueprint* Blueprint, |
Removes the event dispatcher with the given name from the Blueprint. | BlueprintEditorLibrary.h |
|
static bool RemoveEventDispatcherParameter
(
UBlueprint* Blueprint, |
Removes a parameter from an event dispatcher's signature. | BlueprintEditorLibrary.h |
|
static void RemoveFunctionGraph
(
UBlueprint* Blueprint, |
Deletes the function of the given name on this blueprint. Does NOT replace function call sites. | BlueprintEditorLibrary.h |
|
static void RemoveGraph
(
UBlueprint* Blueprint, |
Removes the given graph from the blueprint if possible | BlueprintEditorLibrary.h |
|
static void RemoveUnusedNodes
(
UBlueprint* Blueprint |
Remove any nodes in this blueprint that have no connections made to them. | BlueprintEditorLibrary.h |
|
static int32 RemoveUnusedVariables
(
UBlueprint* Blueprint |
Deletes any unused blueprint created variables the given blueprint. | BlueprintEditorLibrary.h |
|
| Attempts to rename the given graph with a new name | BlueprintEditorLibrary.h |
|
|
static void ReparentBlueprint
(
UBlueprint* Blueprint, |
Attempts to reparent the given blueprint to the new chosen parent class. | BlueprintEditorLibrary.h |
|
static void ReplaceVariableReferences
(
UBlueprint* Blueprint, |
Replace any references of variables with the OldVarName to references of those with the NewVarName if possible | BlueprintEditorLibrary.h |
|
static void SetBlueprintVariableCategory
(
UBlueprint* Blueprint, |
Sets the user-defined category on a Blueprint member variable. | BlueprintEditorLibrary.h |
|
static void SetBlueprintVariableExposeOnSpawn
(
UBlueprint* Blueprint, |
Sets "Expose On Spawn" to true/false on a Blueprint variable | BlueprintEditorLibrary.h |
|
static void SetBlueprintVariableExposeToCinematics
(
UBlueprint* Blueprint, |
Sets "Expose To Cinematics" to true/false on a Blueprint variable | BlueprintEditorLibrary.h |
|
static void SetBlueprintVariableInstanceEditable
(
UBlueprint* Blueprint, |
Sets "Instance Editable" to true/false on a Blueprint variable | BlueprintEditorLibrary.h |
|
static void SetBlueprintVariableReplication
(
UBlueprint* Blueprint, |
Sets the replication mode on a Blueprint variable. | BlueprintEditorLibrary.h |
|
static void SetCommentColor
(
UEdGraphNode_Comment* CommentNode, |
Sets the background color of a comment node. | BlueprintEditorLibrary.h |
|
static void SetCommentText
(
UEdGraphNode_Comment* CommentNode, |
Sets the comment text of a comment node. | BlueprintEditorLibrary.h |
|
static void SetCreateDelegateFunction
(
UK2Node_CreateDelegate* Node, |
End UK2Node extension/script methods | BlueprintEditorLibrary.h |
|
static void SetNodePos
(
UK2Node* Node, |
Sets this node's visual position in the graph | BlueprintEditorLibrary.h |
|
static void UpgradeOperatorNodes
(
UBlueprint* Blueprint |
Replace any old operator nodes (float + float, vector + float, int + vector, etc) with the newer Promotable Operator version of the node. | BlueprintEditorLibrary.h |
|