playMaker

Author Topic: Something about Inventory system  (Read 1083 times)

jaywalker1225

  • Playmaker Newbie
  • *
  • Posts: 1
Something about Inventory system
« on: June 07, 2020, 01:18:18 PM »
Hi! I am new to Playmaker. I am trying to design an inventory system for my 2.5D RPG. I use Grid Layout to hold the storage slots and show as a 2d panel on Game Scene.
I know how to setup the arrays and I can handle the logic. However, I don't know how to show the icon on UI after picked.

The question is that what action sholud i use to show my picked item on the panel? I tried "UI image set sprite" to show the little icon of picked item. Are there any other better action I could use?  I am so confused pls kindly show me the way. :-[   
« Last Edit: June 07, 2020, 01:20:03 PM by jaywalker1225 »

Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: Something about Inventory system
« Reply #1 on: June 07, 2020, 01:33:53 PM »
UI uses afaik a component called Image. You need an action for that component to change it, so the normal Sprite actions (which are made for SpriteRenderer) won't work.

Edit: UI Image Set Sprite should work. Why exactly do you want another action?
« Last Edit: June 07, 2020, 06:37:06 PM by Thore »