private StartDrag_Internal ( string title ) : void | ||
title | string | |
return | void |
private static extern void StartDrag_Internal(string title);
/// <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"); } }