Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetInspectorRotation(Transform, Vector3)

Sets the rotation of a transform as it would be set by the Transform Inspector window.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void SetInspectorRotation(Transform t, Vector3 r)

Parameters

Transform to set the rotation on.

Rotation as it would be set by the Transform Inspector window.