Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Once you have generated one or more through the menu, you will see the files app
![alt](./Documentation~/generated_files.png)

To use the generated files you simply access them through their classes which are: Tags, Layers, and SortingLayers.
Below is an example of a use case for the Tags.
Below is an example for Layer and Tag comparison.

```c#
public class Foo : MonoBehaviour
Expand All @@ -49,8 +49,13 @@ public class Foo : MonoBehaviour
{
if (other.transform.CompareTag(Tags.PLAYER))
{
...
// Tag
}

if (Layers.PLAYER_MASK & (1 << other.gameObject.layer)) > 0)
{
// Layer
}
}
}
```
Expand Down