Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsAxisEnabled

Gets a value indicating whether the specified axis is enabled for the current instance.
Read time 1 minuteLast updated 20 days ago

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.