Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FBlueprintEditorUtils
Description
- Sets the custom category on the variable with the specified name.
-
Will not change the category for variables defined via native classes.
| Name | SetBlueprintVariableCategory |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Kismet2/BlueprintEditorUtils.h |
| Include Path | #include "Kismet2/BlueprintEditorUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Kismet2/BlueprintEditorUtils.cpp |
static void SetBlueprintVariableCategory
(
UBlueprint * Blueprint,
const FName & VarName,
const UStruct * InLocalVarScope,
const FText & NewCategory,
bool bDontRecompile
)
Parameters
| Name | Remarks |
|---|---|
| VarName | Name of the variable |
| InLocalVarScope | Local variable's scope, if looking to modify a local variable |
| VarCategory | The new value of the custom category for the variable |
| bDontRecompile | If true, the blueprint will not be marked as modified, and will not be recompiled. |