Unity Type Safety by Ajk4 - 1

Inputs

Generator of static code for Layers, SortingLayers, Inputs, Tags, Scenes.

Unknown VersionOtherUpdated 76 days agoCreated on April 18th, 2020
Go to source

## Unity3D - static C# code generator for Tags, Layers, SortingLayers, Inputs and Scenes No more stringly-typed code!

  • Don’t like runtime error because of changed string with layer names?
  • Would you like to safely change names of you layers/sorting_layers/inputs/tags without breaking code?
  • Do you prefer compile-time errors instead of run-time errors?

Instead of this:

stringly-typed

have this:

Demo gif

Usage

  1. Clone to your $REPO/Assets dir.
  2. Static classes will get generated. After any changes in Unity static files will get regenerated.
  3. Don’t .gitignore UnityTypeSafety-generated. Commit generated code to avoid cold-start problem with compilation errors on fresh checkouts.
Show all projects by Ajk4