Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Drag and Drop between two inventories.

Discussion in 'UGUI & TextMesh Pro' started by AlooAnday, Oct 1, 2023.

  1. AlooAnday

    AlooAnday

    Joined:
    Jun 25, 2023
    Posts:
    1
    I am working on a project in which I need to make to seperate inventories(one for dragging the objects from and the other one for dropping the objects into). But I am stuck(as I am new to GameDev). I want the objects inside the inventories be draggable and dropable. And then update the score accordingly(the score will depend on whether the user has dropped the right object or not).
    I've tried multiple tutoruials and stuff and still stuck on it.
    I've created the UI but can't understand how should I do it.
    Thank you in advance. upload_2023-10-1_21-16-32.png
    Each chest is going to have its own inventory.
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,761
    Welcome to the forum.

    So you know, UI is not a 2D feature so please use one the UI forums either UGUI or UIToolkit. Also, the tags above don't seem related so I'll remove them (physics, 9-slice) etc.

    I'll take a guess and move to the UGUI but if it's UIToolkit then please let me know.

    Thanks.
     
    AlooAnday likes this.