Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchy > API/Plugins/ControlRig/Rigs/URigHierarchy/SetControlPreferredRotator
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchy.h |
| Include | #include "Rigs/RigHierarchy.h" |
void SetControlPreferredRotator
(
FRigControlElement * InControlElement,
const FRotator & InRotator,
bool bInitial,
bool bFixEulerFlips
)
Remarks
Sets a control's preferred rotator (local transform rotation)
Parameters
| Name | Description |
|---|---|
| InControlElement | The element to look up |
| InRotator | The new preferred rotator to set |
| bInitial | If true we'll return the preferred rotator for the initial - otherwise current transform |
| bFixEulerFlips | If true the new rotator value will use the shortest path |