Version: 5.6

CapsuleBoundsHandle

class in UnityEditor.IMGUI.Controls

/

继承自:IMGUI.Controls.PrimitiveBoundsHandle

切换到手册

描述

用于在 Scene 视图中编辑胶囊形包围体积的复合手柄。

A capsule volume is defined by two parameters. The height specifies the upper and lower bounds along the heightAxis, while the radius specifies the radius of the capsule's cross section between the upper and lower points on its height axis.

2D and 3D CapsuleBoundsHandle in the Scene View.

See Also: PrimitiveBoundsHandle.

变量

heightGets or sets the height of the capsule bounding volume.
heightAxisGets or sets the axis in the handle's space to which height maps. The radius maps to the remaining axes.
radiusGets or sets the radius of the capsule bounding volume.

构造函数

CapsuleBoundsHandle创建 CapsuleBoundsHandle 类的新实例。

受保护的函数

DrawWireframe为此实例绘制线框胶囊体。
OnHandleChanged在控制手柄被拖到场景中时使用的回调。

继承的成员

变量

axes指定哪些轴应显示控制手柄的标志。
centerGets or sets the center of the bounding volume for the handle.
handleColorSpecifies the color of the control handles.
midpointHandleDrawFunction显示控制手柄时使用的可选 CapFunction。如果未指定值,则默认为 Handles.DotHandleCap。
midpointHandleSizeFunctionAn optional SizeFunction to specify how large the control handles should be in the space of Handles.matrix. Defaults to a fixed screen-space size.
wireframeColorSpecifies the color of the wireframe shape.

公共函数

DrawHandle使用实例的当前配置在当前手柄摄像机中显示此实例的函数。
SetColorSet handleColor and wireframeColor to the same value.

受保护的函数

GetSize获取此实例包围体积的当前大小。
IsAxisEnabled获取指示是否为当前实例启用了指定轴的值。
SetSize设置此实例包围体积的当前大小。