I am coding a board game in c# and have all of the code I need to handle the touch input of my board game pieces, except that I only seem to have 31 Layers to use, therefore my 31 layermasks to use for my ray tracing. My game uses more than 50 pieces, and I would like them all to be touchable at one point or another.
It isn't possible to use more layers. The layermask is an integer bit mask. Since an integer has 32 bits you have 32 layers.
If you had took a look into the documentation you would have found GameObject.layer which allows you to get or set the layer of a GameObject.
now you should have all you need ;)
answered Apr 04 '12 at 06:25 PM