Skip to content

felixngd/MagicStringGenerator

Repository files navigation

Feature

  • 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.

Setup

Use UPMGitExtension to install from git tag. Get the lastest version of com.wolffun.codegen.magicstring

How to use?

  1. Open the Editor tool by Tools>CodeGen>Magic String Generator

image

  1. Set a namespace, class name and file name for the generated C# file. Pick a folder to save the file.
  2. Now you can access these strings from code by syntax ClassName.GroupName.Key. For example AddressableKey.TexturesAvartar._48Guild

About

Code gen for addressables key

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •