Forum rules - please read before posting.

Close inventory as player drags item out of the inventory UI

When a player drags an item out of the inventory, I need the inventory to automatically close, when their mouse pointer (holding the item) leaves the inventory UI backdrop.

I'm using a drag and drop interaction, but in this case the object they need to drop the item on is right at the top of the screen, and obscured by the inventory menu whilst it's open.

I'm using the Unity Ui prefab inventory menu, with appear type manual.

Is there a way to trigger some kind of on mouse leave IF theyre holding a dragged item? or will i have to have a global always hide the inventory when the cursor leaves the rect transform of the menu?

Any advice would be gratefully received.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.