기술 자료

Unity Engine

Unity Engine

rotationAxis

The rotation axes affected by the ParentConstraint.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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; }}