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. Dismiss Notice

Can anyone explain why this happens with me inventory/equip

Discussion in 'Scripting' started by Durins-Bane, May 10, 2016.

  1. Durins-Bane

    Durins-Bane

    Joined:
    Sep 21, 2012
    Posts:
    175
    https://gfycat.com/GrizzledDazzlingGreendarnerdragonfly
    Struggling to figure this out

    Everything works fine until I equip the first item in my inventory then try to equip something else does anyone know what causes this or a workaround other than just hiding the button with an item in it
     
  2. gorbit99

    gorbit99

    Joined:
    Jul 14, 2015
    Posts:
    1,350
    I don't understand the problem, is it, that you don't want it to swap the two quite well drawn helmets?
     
  3. Durins-Bane

    Durins-Bane

    Joined:
    Sep 21, 2012
    Posts:
    175
    Haha :D no I can equip any item that is in the inventory other than one that is in slotno = 0 if that slot is empty I have to pick something up and add it to the inventory slot before I can equip another item
     
  4. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,181
    Without seeing the inventory code, it's impossible to help you in any way.