ドキュメント

Unity Engine

Unity Engine

SetConstrainProportions

Sets Constrain Proportions as it would be set in the Transform Inspector window.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

SetConstrainProportions(Transform, bool)

Sets Constrain Proportions as it would be set in the Transform Inspector window.
public static void SetConstrainProportions(Transform transform, bool enabled)

Parameters

transform

Transform to set Constrain Proportions for.

enabled

Enable/Disable Constrain Proportions for passed transforms.

SetConstrainProportions(Transform[], bool)

Sets Constrain Proportions as it would be set in the Transform Inspector window.
public static void SetConstrainProportions(Transform[] transforms, bool enabled)

Parameters

transforms

Transforms to set Constrain Proportions for.

enabled

Enable/Disable Constrain Proportions for passed transforms.