Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 837 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 837 Bytes

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