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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
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];