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.
height | Gets or sets the height of the capsule bounding volume. |
heightAxis | Gets or sets the axis in the handle's space to which height maps. The radius maps to the remaining axes. |
radius | Gets or sets the radius of the capsule bounding volume. |
CapsuleBoundsHandle | 创建 CapsuleBoundsHandle 类的新实例。 |
DrawWireframe | 为此实例绘制线框胶囊体。 |
OnHandleChanged | 在控制手柄被拖到场景中时使用的回调。 |
axes | 指定哪些轴应显示控制手柄的标志。 |
center | Gets or sets the center of the bounding volume for the handle. |
handleColor | Specifies the color of the control handles. |
midpointHandleDrawFunction | 显示控制手柄时使用的可选 CapFunction。如果未指定值,则默认为 Handles.DotHandleCap。 |
midpointHandleSizeFunction | An optional SizeFunction to specify how large the control handles should be in the space of Handles.matrix. Defaults to a fixed screen-space size. |
wireframeColor | Specifies the color of the wireframe shape. |
DrawHandle | 使用实例的当前配置在当前手柄摄像机中显示此实例的函数。 |
SetColor | Set handleColor and wireframeColor to the same value. |
GetSize | 获取此实例包围体积的当前大小。 |
IsAxisEnabled | 获取指示是否为当前实例启用了指定轴的值。 |
SetSize | 设置此实例包围体积的当前大小。 |