Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant