MerlinVR / UdonSharp

An experimental compiler for compiling C# to Udon assembly
MIT License
678 stars 89 forks source link

User behaviour linking #6

Closed MerlinVR closed 4 years ago

MerlinVR commented 4 years ago

This PR adds type aliasing that allows the compiler to know about an underlying user defined type, but store it as a Udon-compatible UdonBehaviour or Component array. This only works for classes that inherit from UdonSharpBehaviour at the moment, but may be extended in the future to support jagged arrays or user classes that are not behaviours.