Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchyController > API/Plugins/ControlRig/Rigs/URigHierarchyController/ReorderElement
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;
bool ReorderElement
&40;
FRigElementKey InElement,
int32 InIndex,
bool bSetupUndo,
bool bPrintPythonCommand
&41;
Remarks
Changes the element's index within its default parent (or the top level) Returns true if the element has been reordered accordingly
Parameters
| Name | Description |
|---|---|
| InElement | The key of the element to rename |
| InIndex | The new index of the element to take within its default parent (or the top level) |
| 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 |