UnityEditor.ManipulationToolUtility.EndDragging C# (CSharp) Method

EndDragging() public static method

public static EndDragging ( string handleName ) : void
handleName string
return void
        public static void EndDragging(string handleName)
        {
            if (handleDragChange != null)
            {
                handleDragChange(handleName, false);
            }
        }

Usage Example

示例#1
0
 public static void DetectDraggingBasedOnMouseDownUp(string handleName, EventType typeBefore)
 {
     if (typeBefore == EventType.MouseDrag && Event.current.type != EventType.MouseDrag)
     {
         ManipulationToolUtility.BeginDragging(handleName);
     }
     else if (typeBefore == EventType.MouseUp && Event.current.type != EventType.MouseUp)
     {
         ManipulationToolUtility.EndDragging(handleName);
     }
 }