UdonSharp icon indicating copy to clipboard operation
UdonSharp copied to clipboard

Static method and variable support on UdonSharpBehaviours and imported user types

Open MerlinVR opened this issue 4 years ago • 2 comments

Link all static variables into a global memory space and generate the linkages to the correct parts of the memory space after all programs have been emitted.

Static methods just work via pulling them in via referenced methods from the root UdonSharpBehaviour methods.

  • [x] Static methods
  • [ ] Static variables

MerlinVR avatar Aug 13 '21 01:08 MerlinVR

Currently working on linking static methods as this will be used in lieu of manually generating bound expressions for more complex internal structures and expressions. Specifically on the road to #104 , GetComponent(s)<T> on UdonSharpBehaviours will be represented as an internal method that gets imported when used.

MerlinVR avatar Aug 13 '21 01:08 MerlinVR

Update: static methods functional.

MerlinVR avatar Aug 30 '21 03:08 MerlinVR