文档

Unity Engine

Unity Engine

SetInspectorRotation(Transform, Vector3)

Sets the rotation of a transform as it would be set by the Transform Inspector window.
阅读时间1 分钟最后更新于 1 个月前

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.