Skip to content

nicoplv/smart-tags-and-layers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Tags and Layers

A tags and layers helper for Unity3D

Installation

Import the package on your project and that's all ... you have access easily to all the tags and layers on your code.

Usage for Layers

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

Usage for Tags

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

Settings

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";

Others

A button to force the generation of lists is created on the Unity menu at Tools >> SmartTagsAndLayers.

About

A tags and layers helper for Unity3D

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages