0
Answered

Item without inventory type

Einar 5 months ago in Inventory updated 5 months ago 2

It seems that items that don't have a set inventory type are not visible in the inventory. Is this intentional? The documentation is not entirely clear on whether item type is mandatory or not.

Unity version:
Game Creator version:
GOOD, I'M SATISFIED
Satisfaction mark by Einar 5 months ago
+1
Answered

Yes, this is intentional. The Inventory uses the Types as a bit-mask so filter which objects can be shown in the Inventory UI. That way, you can create a tab that only displays Potions, another that displays Equipment, etc...

However, this has the downside that if you don't set the type of an item, it will have a bit-mask value of 0, which is the value used to ignore the placement of the item in the Inventory UI.

I'll modify the documentation so this is more clear