Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchyController > API/Plugins/ControlRig/Rigs/URigHierarchyController/RenameElement
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchyController.h |
| Include | #include "Rigs/RigHierarchyController.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Private/Rigs/RigHierarchyController.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;URigHierarchyController&41;
FRigElementKey RenameElement
&40;
FRigElementKey InElement,
FName InName,
bool bSetupUndo,
bool bPrintPythonCommand,
bool bClearSelection
&41;
Remarks
Renames an existing element in the hierarchy Returns the new element key used for the element
Parameters
| Name | Description |
|---|---|
| InElement | The key of the element to rename |
| InName | The new name to set for the element |
| bSetupUndo | If set to true the stack will record the change for undo / redo |
| bPrintPythonCommand | If set to true a python command equivalent to this call will be printed out |
| bClearSelection | True if the selection should be cleared after a rename |