Experimental: this API is experimental and might be changed or removed in the future.

SelectionDragger

class in UnityEditor.Experimental.UIElements.GraphView

/

Inherits from:Experimental.UIElements.GraphView.Dragger

Switch to Manual

Description

选项拖动程序操控器。

Constructors

SelectionDraggerSelectionDragger 的构造函数。

Protected Functions

OnMouseDown在发生鼠标按下事件时调用。
OnMouseMove发生鼠标移动事件时调用。
OnMouseUp发生鼠标松开事件时调用。
RegisterCallbacksOnTarget调用以在目标元素上注册单击事件回调。
UnregisterCallbacksFromTarget调用以从目标元素取消注册单击事件回调。

Inherited members

Variables

clampToParentEdges如果为 true,它将不允许拖动的元素退出父元素的边缘。
panSpeed当元素被拖动到图的边缘附近时,会发生平移。这可以控制平移速度。
targetThe element that handles the interaction.

Protected Functions

CalculatePosition计算拖动的元素的新位置。