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
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
- A submenu disappears on MacOS when the MenuItem method argument "isVariableFunction" is set to "false" and priority argument is set to "-1"
- The Sprite Library Editor window has an incorrect order of Sprites when the Sprites are reordered and the order saved
- Tilemap Tiles do not get lit up unless the Light Range is greater than the distance between the position of the Tile before the transformation and the Light Source when the Tile is transformed with Tilemap.SetTransformMatrix method
- The Editor and "Reloading Domain" windows are frozen when entering Play Mode
- Crash when attempting to create a custom FMOD DSP unit
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];