vrchat-community / UdonSharp

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

Add support for custom ASMDEF defines in UdonSharpBehaviours #85

Open techanon opened 1 year ago

techanon commented 1 year ago

Feature Description: Currently U# does not support compile flags defined within ASMDEF files for VPM packages within UdonSharpBehaviours. This method of handling define flags will be used more in the future and being able to integrate these flags into UdonSharpBehaviours would be very useful.

Additional context: And example of utilizing custom ASMDEF define in an UdonSharpBehaviour: https://gitlab.com/techanon/protv/-/blob/9afd72f3e7f745ff9049ffb22a311dfd58af8dd6/Runtime/AudioLinkAdapter/AudioLinkAdapter.cs