Navigation
API > API/Editor > API/Editor/BlueprintEditorLibrary > API/Editor/BlueprintEditorLibrary/UBlueprintEditorLibrary
Description
Finds the UBlueprint associated with the object, locally searching the object graph for a UBlueprint associated with an asset object. If the Object is a UBlueprint this function will perform a simple cast. Note that the blueprint object itself is editor only and not present in cooked assets.
| Name | GetBlueprintAsset |
| Type | function |
| Header File | /Engine/Source/Editor/BlueprintEditorLibrary/Public/BlueprintEditorLibrary.h |
| Include Path | #include "BlueprintEditorLibrary.h" |
| Source | /Engine/Source/Editor/BlueprintEditorLibrary/Private/BlueprintEditorLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Blueprint Upgrade Tools", Meta=(Keywords="cast"))
static UBlueprint * GetBlueprintAsset
(
UObject * Object
)
UBlueprint* The blueprint associated with the given object, nullptr if the object has no associated blueprint or the blueprint is in another package
Parameters
| Name | Remarks |
|---|---|
| Object | The object we need to get the UBlueprint from |