Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Inventory system

Discussion in 'UGUI & TextMesh Pro' started by phoda, Jul 25, 2015.

  1. phoda

    phoda

    Joined:
    Nov 11, 2014
    Posts:
    384
    Hi,
    I am currently creating inventory system and I have it stored in save file and in memory of game in list<int>, like list[0] = 10 (10 x "0" items). I want to create inventory that looks something like this
    Code (CSharp):
    1.     x   x   x   x   x   x
    2.     x   x   x   x   x   x
    3. //<buttons for left||right>
    4.  
    5. //or maybe swipe
    6.  
    7. //or scroll bar/swipe for up/down is also good
    I am interested how to show to player that inventory (x represents image of object and number of objects). I thought about creating 10-20 (how much can go to screen) images and change them based on page of inventory or something like that.

    Any kind of tutorial or explanation is welcome. I searched but without succes
     
    Last edited: Jul 25, 2015
  2. William_Lee_Sims

    William_Lee_Sims

    Joined:
    Oct 11, 2014
    Posts:
    40