Search Issue Tracker
Fixed in 2019.3.X
Votes
1
Found in
2018.1.2f1
Issue ID
1045195
Regression
No
[Windows] TreeView.HandleDragAndDrop(DragAndDropArgs args) is not called when the Cursor is dragging a Row
To reproduce:
1. Download attached project "TreeView Drag Bug.zip" and open in Unity
2. Open "scene_main" scene
3. Press Window > Open TreeView Test Window
4. Try Drag and Drop for example "Red" on "Blue"
Expected results: TreeView.HandleDragAndDrop(DragAndDropArgs args) would be called with 'args.dragAndDropPosition' equaling the correct DragAndDropPosition value (BetweenItems, OntoItem, etc)
Actual results: TreeView.HandleDragAndDrop(DragAndDropArgs args) is not called when the cursor is dragging a row. Instead, TreeView.HandleDragAndDrop(DragAndDropArgs args) is not called at all, and TreeView.SetupDragAndDrop(SetupDragAndDropArgs args) is called on MouseRelease instead of MouseDrag
Notes:
- This issue reproduces only on Windows
- Could not reproduce this issue on OSX because of this bug:
https://issuetracker.unity3d.com/issues/osx-no-drag-and-drop-has-been-setup-please-error-when-dragging-any-item-in-unity
Reproduced on Unity 2017.1.4f1, 2017.2.3p1, 2017.3.2f1, 2017.4.5f1, 2018.1.4f1, 2018.2.0b7 and 2018.3.0a1
Comments (3)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Manual reference page for Grid Selection is missing
- Awaitable.NextFrameAsync causes GC Alloc 0.7 KB when using CancellationToken
- Prefab "Overrides" list item popups are overridden when navigating with keyboard arrow keys
- Alpha Tolerance setting does not affect generated outlines when generating Custom Physics Shape in the Sprite Editor
- The information/help message section misses a margin in the "Profiler" window
Firadzo
Dec 14, 2018 11:37
I am was able to receive TreeView.HandleDragAndDrop callback after calling DragAndDrop.StartDrag("Dragging") inside of SetupDragAndDrop.
DrPhilippe
Aug 29, 2018 12:08
do it inside SetupDragAndDrop :)
DrPhilippe
Aug 29, 2018 12:08
try this:
DragAndDrop.activeControlID = args.draggedItemIDs[0];