Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Static method and variable support on UdonSharpBehaviours and imported user types #108

Open
1 of 2 tasks
MerlinVR opened this issue Aug 13, 2021 · 2 comments
Open
1 of 2 tasks
Assignees
Milestone

Comments

@MerlinVR
Copy link
Owner

MerlinVR commented Aug 13, 2021

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.

  • Static methods
  • Static variables
@MerlinVR MerlinVR created this issue from a note in UdonSharp 1.0 (In progress) Aug 13, 2021
@MerlinVR MerlinVR added this to the UdonSharp 1.0 milestone Aug 13, 2021
@MerlinVR MerlinVR self-assigned this Aug 13, 2021
@MerlinVR
Copy link
Owner Author

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
Copy link
Owner Author

Update: static methods functional.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
UdonSharp 1.0
In progress
Development

No branches or pull requests

1 participant