translationAxis
The translation axes affected by the ParentConstraint.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Animations
- Assembly: UnityEngine.AnimationModule
public Axis translationAxis { get; set; }
Remarks
Use this property to restrict the translation of the constrained object on a particular axis.
Examples
using UnityEngine.Animations;public class ConstraintAxis{ public void ConstrainOnlyOnXY(ParentConstraint component) { component.translationAxis = Axis.X | Axis.Y; }}