기술 자료

Unity Engine

Unity Engine

IsAxisEnabled

Gets a value indicating whether the specified axis is enabled for the current instance.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

IsAxisEnabled(Axes)

Gets a value indicating whether the specified axis is enabled for the current instance.
protected bool IsAxisEnabled(PrimitiveBoundsHandle.Axes axis)

Parameters

Returns

Type

Description

bool
true
if the specified axis is enabled; otherwise,
false
.

Remarks

Additional Resources: PrimitiveBoundsHandle.axes.

IsAxisEnabled(int)

Gets a value indicating whether the specified axis is enabled for the current instance.
protected bool IsAxisEnabled(int vector3Axis)

Parameters

vector3Axis

An integer corresponding to an axis on a Vector3. For example,
0
is x,
1
is y, and
2
is z.

Returns

Type

Description

bool
true
if the specified axis is enabled; otherwise,
false
.

Remarks

Additional Resources: PrimitiveBoundsHandle.axes.