Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

ScaleConstraint.scalingAxis

public Animations.Axis scalingAxis;

Description

The axes affected by the ScaleConstraint.

Use this property to restrict the effect of the constraint on a particular axis.

using UnityEngine.Animations;

public class ConstraintAxis { public void ConstrainOnlyOnXY(ScaleConstraint component) { component.scalingAxis = Axis.X | Axis.Y; } }

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