Version: 2019.1

TransformUtils.SetInspectorRotation

Switch to Manual
public static void SetInspectorRotation (Transform t, Vector3 r);

Parameters

tTransform to set the rotation on.
rRotation as it would be set by the Transform Inspector window.

Description

Sets the rotation of a transform as it would be set by the Transform Inspector window.