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
- Keywords on Material Variants aren't automatically saved when changed on original Material through Shader Graph
- Light Probes get baked when calling LightProbes.Tetrahedralize
- Shadows flicker and cause visual artifacts when modifying a GameObject's bounds using Swizzle (Y Mask) and Sine Time nodes
- [WebGL] Frame rate drops by 5-20 fps when moving cursor or touch input in the Player
- Light bleeds when using box shaped spotlight with specific Emission Range values
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];