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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
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];