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

参数

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

返回

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

描述

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

This method ensures that the radius axes scale uniformly and that the height and radius parameters cannot fall outside their acceptable ranges relative to one another.

The height control handles cannot be made smaller than the diameter. Enlarging the diameter handles automatically increases the height if needed. The height value at the time the control was clicked is preferred until the user releases the control handle.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961