- Home /
Drag item to inventory (ultima online style)
For those of you familiar with Ultima online, I am trying to mimic how you could drag a game world object into your inventory bag.
My attempt has been that when a game world item detects mouse down, set its parent as a screen to world canvas image element. I then set that image element's image as that of the game item. I then set up drag and drop handlers on that image element and the inventory area to handle canvas layer drag and drop.
Is this dumb? Is there a better direction to go? The problem I currently have is the user has to click again once the item is raised to the ui layer to start dragging.
Any high level psuedocode steps would be awesome, thanks.
Your answer
![](https://koobas.hobune.stream/wayback/20220612144118im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How can I delete an item from this inventory system? 1 Answer
GUI.DragWindow causing Inventory Tooltip to stop showing 0 Answers
Need help with my 2D inventory slot system 1 Answer
Inventory System Unity 0 Answers
Can I use Scriptable Objects for Hero Stats that change throughout the game? 0 Answers