Navigation
API > API/Editor > API/Editor/BlueprintEditorLibrary > API/Editor/BlueprintEditorLibrary/UBlueprintEditorLibrary
Description
Sets the user-defined category on a Blueprint member variable. Categories are used to group variables in the My Blueprint panel. Note: Will not change the category for variables defined via native classes.
| Name | SetBlueprintVariableCategory |
| 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="Editor Scripting", Meta=(ScriptMethod))
static void SetBlueprintVariableCategory
(
UBlueprint * Blueprint,
const FName & VariableName,
const FText & NewCategory
)
Parameters
| Name | Remarks |
|---|---|
| Blueprint | The blueprint object |
| VariableName | The variable name |
| NewCategory | The new category text. Pass empty to reset to the default (the Blueprint's name). |