UnityEditor.DragAndDrop.StartDrag_Internal C# (CSharp) Method

StartDrag_Internal() private method

private StartDrag_Internal ( string title ) : void
title string
return void
        private static extern void StartDrag_Internal(string title);

Usage Example

示例#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");
     }
 }