translationAxis
The axes affected by the PositionConstraint.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: UnityEngine.Animations
- Assembly: UnityEngine.AnimationModule
public Axis translationAxis { get; set; }
Remarks
Use this property to restrict the effect of the constraint on a particular axis.
Examples
using UnityEngine.Animations;public class ConstraintAxis{ public void ConstrainOnlyOnXY(PositionConstraint component) { component.translationAxis = Axis.X | Axis.Y; }}