protected override void SetupDragAndDrop(TreeView.SetupDragAndDropArgs args) { DragAndDrop.PrepareStartDrag(); DragAndDrop.paths = null; DragAndDrop.objectReferences = new UnityEngine.Object[0]; DragAndDrop.SetGenericData("BuildPlayerSceneTreeViewItem", new List <int>(args.draggedItemIDs)); DragAndDrop.visualMode = DragAndDropVisualMode.Copy; DragAndDrop.StartDrag("BuildPlayerSceneTreeView"); }
protected override void SetupDragAndDrop(TreeView.SetupDragAndDropArgs args) { DragAndDrop.PrepareStartDrag(); DragAndDrop.paths = null; DragAndDrop.objectReferences = new UnityEngine.Object[] { }; DragAndDrop.SetGenericData("Items", new List <int>(args.draggedItemIDs)); DragAndDrop.visualMode = DragAndDropVisualMode.Move; DragAndDrop.StartDrag("DataListTreeView"); }