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" |
UFUNCTION (BlueprintCallable, Category=URigHierarchy)
void SetControlPreferredRotator
(
FRigElementKey InKey,
const FRotator & InRotator,
bool bInitial,
bool bFixEulerFlips
)
Remarks
Sets a control's preferred rotator (local transform rotation)
Parameters
| Name | Description |
|---|---|
| InKey | The key of the element to retrieve the current value for |
| 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 |