文档

Unity Engine

Unity Engine

OnHandleChanged(HandleDirection, Bounds, Bounds)

A callback for when a control handle was dragged in the Scene.
阅读时间1 分钟最后更新于 1 个月前

Definition

protected virtual Bounds OnHandleChanged(PrimitiveBoundsHandle.HandleDirection handle, Bounds boundsOnClick, Bounds newBounds)

Parameters

The handle that was dragged.

boundsOnClick

The raw Bounds for this instance's volume at the time the control handle was clicked.

newBounds

The raw Bounds for this instance's volume based on the updated handle position.

Returns

Type

Description

BoundsThe bounds that should be applied to this instance, with any necessary modifications applied.

Remarks

Use this method to apply any necessary constraints to the bounding volume.