Version: 5.6
protected Bounds OnHandleChanged (IMGUI.Controls.PrimitiveBoundsHandle.HandleDirection handle, Bounds boundsOnClick, Bounds newBounds);

参数

handle 被拖动的手柄。
boundsOnClick 单击控制手柄时此实例体积的原始 Bounds
newBounds 此实例体积的原始 Bounds(基于更新的手柄位置)。

返回

Bounds 应该应用于此实例的边界(已对实例应用所有必要的修改)。

描述

在控制手柄被拖到场景中时使用的回调。

此方法可确保所有轴始终均匀缩放。