Search Unity

Icon appears when item enters collider

Discussion in 'Scripting' started by M_Keyla_M, Jun 4, 2020.

  1. M_Keyla_M

    M_Keyla_M

    Joined:
    Dec 24, 2014
    Posts:
    57
    So im trying to make a potion game in third person.
    You drop 3 objects into the cauldron and it changes into a potion.
    What i want however is that when you drop one object in an icon of that object appears above the cauldron.
    How do i script this?? im a noob when it comes to scripting..
    Thnx!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    You could probably get some ideas from an inventory system tutorial on youtube. what you're describing is technically a little tiny "inventory" floating above the cauldron and you're putting things into it, so it would need an icon just like a regular inventory does.
     
  3. M_Keyla_M

    M_Keyla_M

    Joined:
    Dec 24, 2014
    Posts:
    57
    Oh that’s smart! I’ll check that out thnx!