Wednesday, 29 October 2014

Unity's built in tagging system is both "slow" (they are stored as strings (text), this is considered slow in the programming world) and only allows 1 tag per object. However, I know that I will need objects to have multiple tags. For example, an object may be climable and also edge detectable. To overcome this, I have created a simple script that you can attach to objects that allow the objects to have as many tags as you like. I use enums as my tags which basically means you can have a named tag without the drawback of them being stored as a string (text).

In all it's glory!

I shall be using this system instead of the built in one and shall also be asking Paul to use it aswel to keep the code consistent. 

xoxo

0 comments:

Post a Comment