Version: 2022.3

TransformUtils

class in UnityEditor

切换到手册

描述

编辑器变换实用程序类。

静态函数

GetConstrainProportionsReturns Constrain Proportions toggle value as it is shown in the Transform Inspector window.
GetInspectorRotation返回变换旋转,正如 Transform Inspector 窗口中所示。
SetConstrainProportionsSets Constrain Proportions as it would be set in the Transform Inspector window.
SetInspectorRotation设置变换旋转,与 Transform Inspector 窗口设置的旋转相同。