ialex32x / unity-jsb

It brings Javascript runtime capability to Unity3D by integrating QuickJS.
MIT License
337 stars 43 forks source link

totally use generated assembly (via CodeDomProvider) for reflectbind #63

Closed ialex32x closed 3 years ago

ialex32x commented 3 years ago
  1. get user defined symbols via PlayerSettings.GetScriptingDefineSymbolsForGroup()
  2. add builtin symbols: UNITY_EDITOR; UNITY_EDITOR_WIN (depends on current platform)
  3. comipler option: "-define:DEFINE_A;DEFINE_B"
ialex32x commented 3 years ago

it's inefficient to compile every type separately, try to delay the compilation until the type being actually used