Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

TransformUtils.SetInspectorRotation

Declaration

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

Parameters

t Transform to set the rotation on.
r Rotation 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.