ドキュメント

Unity Engine

Unity Engine

rotationAxis

The axes affected by the RotationConstraint.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public Axis rotationAxis { 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(RotationConstraint component) { component.rotationAxis = Axis.X | Axis.Y; }}