Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TransformUtils

Editor Transform Utility Class.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Class
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static class TransformUtils

Static Methods

Method

Description

GetConstrainProportionsReturns Constrain Proportions toggle value as it is shown in the Transform Inspector window.
GetInspectorRotationReturns the rotation of a transform as it is shown in the Transform Inspector window.
SetConstrainProportionsSets Constrain Proportions as it would be set in the Transform Inspector window.
SetInspectorRotationSets the rotation of a transform as it would be set by the Transform Inspector window.