UiDragging Layer problem

Hi guys,
I am working on a custom Inventory which has dragging item from slot to slot.
Bc of some issues while development I had to use a Gui-dragging Script and could not use the new UiDragDetector-Instance.
But my problem is that while dragging the UiImage of the Item is one layer behind each slot (Like Shown In the video).

In the video you might notice that the LayoutOrder is set by a CanvasGroup. But I tested changing every LayoutOrder (Slots, Item’s UiImage, CanvasGroup)

Test it in this game

How could I fix this?

BUMP!

  • Problem solved (Item behind slots). Had to change ZIndex and LayoutOrder!

Another problem: When I dragg the Item outside of the parent(scrollframe) of the Slots it is not visible.

Please ask for more Informations if requierd!

1 Like

Is clip decedents on for the frame or whatever is holding it?

yep, bc It is scrollable and if I turn it of you can see the slots “scrolled outside”

also does changing “clipsdescendents” not aply to the item when I change it in the inventory main frame

i guess you could parent the drag thing into a seperate screengui while its being dragged

Thanks for this Idea it helped fixing it.

What the problam was: I had a value that stored the old slot (to much to explain why I need it), the issue was that I applied the parent of the item to this value after dragging.

Hope this information is helpfull for ppl with similar issues :confused:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.