A tags and layers helper for Unity3D
Import the package on your project and that's all ... you have access easily to all the tags and layers on your code.
Get the mask of the layer named "Awesome Name":
SmartTagsAndLayers.Layers.AwesomeName.Mask
Get the index of the layer named "Awesome Name":
SmartTagsAndLayers.Layers.AwesomeName.Get
Get the name of the layer named "Awesome Name":
SmartTagsAndLayers.Layers.AwesomeName.Name
Get a list of all the layers available on the project:
SmartTagsAndLayers.Layers.List
Get the mask of the tag "Awesome Name":
SmartTagsAndLayers.Tags.AwesomeName
Get a list of all the tags available on the project:
SmartTagsAndLayers.Tags.List
You can disable the auto-generation of the layer list by editing the file TagsAndLayersGenerator like that:
private static bool autoGenerate = false;
You can change the folder path of the generated list by editing the file TagsAndLayersGenerator like that:
private static string scriptFolderPathAbsolute = Application.dataPath + "YourPath";
A button to force the generation of lists is created on the Unity menu at Tools >> SmartTagsAndLayers.