UBlueprintEditorLibrary

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

BlueprintEditorLibrary

Header

/Engine/Source/Editor/BlueprintEditorLibrary/Public/BlueprintEditorLibrary.h

Include

#include "BlueprintEditorLibrary.h"

Syntax

class UBlueprintEditorLibrary : public UBlueprintFunctionLibrary

Constructors

Name Description

Public function

UBlueprintEditorLibrary

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

UEdGraph ...

 

AddFunctionGraph

(
    UBlueprint* Blueprint,
    const FString& FuncName
)

Adds a function to the given blueprint

Public function Static

void

 

CompileBlueprint

(
    UBlueprint* Blueprint
)

Compiles the given blueprint.

Public function Static

UEdGraph ...

 

FindEventGraph

(
    UBlueprint* Blueprint
)

Finds the event graph of the given blueprint.

Public function Static

UEdGraph ...

 

FindGraph

(
    UBlueprint* Blueprint,
    FName GraphName
)

Finds the graph with the given name on the blueprint. Null if it doesn't have one.

Public function Static

bool

 

GatherUnusedVariables

(
    const UBlueprint* Blueprint,
    TArray< FProperty* >& OutProp...
)

Gathers any unused blueprint variables and populates the given array of FPropertys

Public function Static

UClass *

 

GeneratedClass

(
    UBlueprint* BlueprintObj
)

Gets the class generated when this blueprint is compiled

Public function Static

UBlueprint &...

 

GetBlueprintAsset

(
    UObject* Object
)

Gets the UBlueprint version of the given object if possible.

Public function Static

void

 

RemoveFunctionGraph

(
    UBlueprint* Blueprint,
    FName FuncName
)

Deletes the function of the given name on this blueprint. Does NOT replace function call sites.

Public function Static

void

 

RemoveGraph

(
    UBlueprint* Blueprint,
    UEdGraph* Graph
)

Removes the given graph from the blueprint if possible

Public function Static

void

 

RemoveUnusedNodes

(
    UBlueprint* Blueprint
)

Remove any nodes in this blueprint that have no connections made to them.

Public function Static

int32

 

RemoveUnusedVariables

(
    UBlueprint* Blueprint
)

Deletes any unused blueprint created variables the given blueprint.

Public function Static

void

 

RenameGraph

(
    UEdGraph* Graph,
    const FString& NewNameStr
)

Attempts to rename the given graph with a new name

Public function Static

void

 

ReparentBlueprint

(
    UBlueprint* Blueprint,
    UClass* NewParentClass
)

Attempts to reparent the given blueprint to the new chosen parent class.

Public function Static

void

 

ReplaceVariableReferences

(
    UBlueprint* Blueprint,
    const FName OldVarName,
    const FName NewVarName
)

Replace any references of variables with the OldVarName to references of those with the NewVarName if possible

Public function 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.