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