Invenotry system for other objects
Hello guys,
I'm looking for advice or suggestion. I've created invenotry system for player and I want to create an inventory for other interactive objects such as Chest (item storage), Fireplace (Roasting the meat) etc.
So I think there are two solutions:
Create shared canvas for all interactive objects where left side will represent the player's inventory and right side will be an inventory of interactive objects. So only one Canvas with panels for every object with inventory.
Create canvas for every object where Left side will be an inventory of player and right side will be an inventory of interactive object.
So, what's better solution or is there a better approach?
Regards
Depends on the behavior you are looking for.
If you have a specific, unchanging place for each inventory, you can use two different canvases, as there is no issue with overlapping.
If you want the inventory to re-size according to the elements in it, you may have an easier time with a shared canvas and using a different parent for each inventory, and putting those parents under the same canvas.
Your answer
Follow this Question
Related Questions
Canvas Structure for Different UI Panels 0 Answers
How to render an image always on top? Already tried some solutions 0 Answers
GridLayoutGroup doesn't fit Canvas. 0 Answers
How to keep text sharp with a scaled UI ? 0 Answers
How would I Consistantly 'Snap' a UI Element to the Edge of a Camera? 1 Answer