vrchat-community / UdonSharp

A compiler for compiling C# to Udon assembly
https://udonsharp.docs.vrchat.com
MIT License
462 stars 50 forks source link

Re add “compile all scripts” option #109

Closed TheMaskedMan00 closed 1 year ago

TheMaskedMan00 commented 1 year ago

Re add option to not compile all scripts every time one script changes.

Also, whenever changing a script that isn’t related to udonsharp, it compiles all udon sharp behaviours anyways. I have a slow laptop and a lot of udon in my project and it takes a long time. Could you add an option that can stop udonsharp from compiling when a non udon script is changed?

the docs also still show the setting I mentioned 298AD172-696D-4A5A-8346-C80C46B76322

MerlinVR commented 1 year ago

This doesn't work anymore with U#'s architecture and was removed as a result. U# needs awareness of all scripts that it may reference because users could define static functions or other things that U# needs to be able to see. You can disable auto compile on modify if you want, that will not trigger compiles until they are absolutely needed.