BoxBoundsHandle

class in UnityEditor.IMGUI.Controls

/

Inherits from:IMGUI.Controls.PrimitiveBoundsHandle

Switch to Manual

Description

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

2D and 3D BoxBoundsHandle in the Scene View.

See Also: PrimitiveBoundsHandle.

Variables

size返回或指定包围盒的尺寸。

Constructors

BoxBoundsHandle创建 BoxBoundsHandle 类的新实例。

Protected Functions

DrawWireframe为此实例绘制线框盒。

Inherited members

Variables

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

Public Functions

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

Protected Functions

GetSize获取此实例包围体积的当前大小。
IsAxisEnabled获取指示是否为当前实例启用了指定轴的值。
OnHandleChangedA callback for when a control handle was dragged in the Scene.
SetSize设置此实例包围体积的当前大小。

Static Functions

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