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.MaskGet the index of the layer named "Awesome Name":
SmartTagsAndLayers.Layers.AwesomeName.GetGet the name of the layer named "Awesome Name":
SmartTagsAndLayers.Layers.AwesomeName.NameGet a list of all the layers available on the project:
SmartTagsAndLayers.Layers.ListGet the mask of the tag "Awesome Name":
SmartTagsAndLayers.Tags.AwesomeNameGet a list of all the tags available on the project:
SmartTagsAndLayers.Tags.ListYou 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.