StartDrag_Internal() private method

private StartDrag_Internal ( string title ) : void
title string
return void
Exemplo n.º 1
0
 /// <summary>
 ///   <para>Start a drag operation.</para>
 /// </summary>
 /// <param name="title"></param>
 public static void StartDrag(string title)
 {
     if (Event.current.type == EventType.MouseDown || Event.current.type == EventType.MouseDrag)
     {
         DragAndDrop.StartDrag_Internal(title);
     }
     else
     {
         Debug.LogError((object)"Drags can only be started from MouseDown or MouseDrag events");
     }
 }