- One click automatically generate C# constant string classes.
- A solution for archieving zero allocation of magic string in Addressables and Localization.
- Optional integrate with Odin Inspector.
Use UPMGitExtension to install from git tag.
Get the lastest version of com.wolffun.codegen.magicstring
- Open the Editor tool by Tools>CodeGen>Magic String Generator
- Set a namespace, class name and file name for the generated C# file. Pick a folder to save the file.
- Now you can access these strings from code by syntax
ClassName.GroupName.Key
. For exampleAddressableKey.TexturesAvartar._48Guild