Version: 2019.1
Language: 中文

SphereBoundsHandle

class in UnityEditor.IMGUI.Controls

/

Inherits from:IMGUI.Controls.PrimitiveBoundsHandle

Switch to Manual

Description

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

A sphere volume is defined by only a radius parameter, and so dragging a handle will always scale the volume uniformly.

2D and 3D SphereBoundsHandle in the Scene View.

See Also: PrimitiveBoundsHandle.

Variables

radiusReturns or specifies the radius of the sphere bounding volume.

Constructors

SphereBoundsHandle创建 SphereBoundsHandle 类的新实例。

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。