Rotatable
Allows rotating gameobject around its pivot.
Options
Interactable
boolAllow users to change the rotation of the GameObject.
Rotate Directions
Rotatable.DirectionsAllowed corners to apply the rotation.
Active Region
floatDistance from border where rotation allowed.
Limit Rotation
boolAllows rotating objects only with the specified angles range.
Angle Min
floatAllowed value is in range [-180..180].
Angle Max
floatAllowed value is in range [-180..180].
Angle step
floatAllowed value is in range [0..180). Set 0 to disable.
Cursors
CursorsCustom cursors to show the allowed rotation state.
Events
OnStartRotate
UnityEvent<Rotatable>OnRotate
UnityEvent<Rotatable>OnEndRotate
UnityEvent<Rotatable>OnTargetChanged
UnityEvent<Rotatable>
Properties
Target
RectTransformTarget to rotate; the self is by default.