static function Slider2D (handlePos : Vector3, handleDir : Vector3, slideDir1 : Vector3, slideDir2 : Vector3, handleSize : float, drawFunc : DrawCapFunction, snap : float, drawHelper : bool = false) : Vector3
Vector3 - the new handle position Note: Use HandleUtility.GetHandleSize where you might want to have constant screen-sized handles.
返回三维向量,新的控制柄位置。注意,使用HandleUtility.GetHandleSize你可能希望有恒定的屏幕大小的控制柄。
Description描述
Slide a handle in a 2D plane
在2D平面的滑动控制柄。
This will draw a draggable handle on the screen. The handle is constrained to sliding on a plane.
这将在屏幕上绘制一个可拖动控制柄。控制是被约束在一个平面上滑动。