0
Answered

How can I create more than 32 types id?

Riccardo Provazza 5 months ago in Inventory updated by Marti (Lead Developer) 5 months ago 2
Unity version:
2019.3.11f1
Game Creator version:
1.1.8

I need to implement various type pf weapons and I need to divide them in categories

Answered

This is not possible. 32 is the number of bits an integer type has, which is used as a bit-mask to improve performance when checking whether an item belongs to a certain type/s.

We could use a long int, but Unity does't provide Editor GUI controls for these types. Despite this, 32 types should be enough for most games.