I would like to show weapons and health items in an inventory grid.
The element can be rotated in the grid and occupies a certain region of the grid.
Currently, I am storing this information (where the item is, if it is rotated, etc.) in an additional table. However, this is not elegant and prone to errors.
So I would like to ask if it is possible to somehow store this additional information directly in the weapon or health GameObject.
Ideally, I would like to be able to do something like this:
Pistol.GridProps.Rotation = 90 Pistol.GridProps.Row = 5 Pistol.GridProps.Col = 3
Is it possible to add something like "GridProps" to all my game objects?