CapsuleBoundsHandle

class in UnityEditor.IMGUI.Controls

/

Inherits from:IMGUI.Controls.PrimitiveBoundsHandle

Switch to Manual

Description

用于在 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.

Variables

height返回或指定胶囊体包围体积的高度。
heightAxis返回或指定 height 映射到的手柄空间的轴。radius 将映射到剩余的轴。
radius返回或指定胶囊体包围体积的半径。

Constructors

CapsuleBoundsHandle创建 CapsuleBoundsHandle 类的新实例。

Protected Functions

DrawWireframe为此实例绘制线框胶囊体。
OnHandleChangedA callback for when a control handle was dragged in the Scene.

Inherited members

Variables

axes指定哪些轴应显示控制手柄的标志。
center返回或指定手柄包围体积的中心。
handleColor返回或指定控制手柄的颜色。
midpointHandleDrawFunction显示控制手柄时使用的可选 CapFunction。如果未指定值,则默认为 Handles.DotHandleCap。
midpointHandleSizeFunction用于指定中点控制手柄应该多大的 SizeFunction。
wireframeColor返回或指定线框形状的颜色。

Public Functions

DrawHandle使用实例的当前配置在当前手柄摄像机中显示此实例的函数。
SetColor将 handleColor 和 wireframeColor 设置为相同的值。

Protected Functions

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

Static Functions

DefaultMidpointHandleSizeFunction返回一个固定屏幕空间尺寸的 SizeFunction。