TransformUtils.SetConstrainProportions

Declaration

public static void SetConstrainProportions(Transform transform, bool enabled);

Declaration

public static void SetConstrainProportions(Transform[] transforms, bool enabled);

Parameters

transform Transform to set Constrain Proportions for.
transforms Transforms to set Constrain Proportions for.
enabled Enable/Disable Constrain Proportions for passed transforms.

Description

Sets Constrain Proportions as it would be set in the Transform Inspector window.


Did you find this page useful? Please give it a rating: