Closed NGenesis closed 4 years ago
The callbacks currently aren't doing quite what they're advertised to do. The callback will run on all program assets regardless of what's actually being compiled. It'd be more accurate to use the programs in the compilation modules since that is what is actually getting compiled at a given moment. I can merge and fix this if you'd like.
This pull request adds support for
beforeProgramAssetCompile
andafterProgramAssetCompile
callbacks toUdonSharpCompiler
which allows for additional pre/post pipelining steps such as method stub generation, source file overrides, cache updates, etc when anUdonSharpProgramAsset
is to be compiled by UdonSharp.An example use case: