Udon 2
in progress
Fax
Udon 2 is VRChat's upcoming replacement for Udon.
"Udon" is a feature of the VRChat's Worlds SDK. It allows users to write custom scripts with the Udon Graph and UdonSharp.
Udon 2 runs WebAssembly instead of UdonAssembly. Programs are compiled into C# script assemblies using Roslyn and run within VRChat using the same runtime as Blazor. This means that...
- Most C# features are supported, such as Lists, Dictionaries or Actions.
- Scripts in worlds uploaded with Udon 2 will generally perform better.
- Existing worlds will continue to work as before.
- Udon Graph programs are compiled into C# instead of UdonAssembly.
Log In
Genesis
Will we be able to use simple reflection in Udon 2? I've had to resort to implementing UdonSharp compiler hacks for keeping track of method parameter names so I can use SendCustomEvent with arbitrary numbers of arguments (see https://gist.github.com/NGenesis/9729ad29bfff576a9638593e852073b1), but it would be great to be able to simply query and invoke the method with reflection.
Μerlin
Genesis Yes
W
WildWolf31373
Seeing as this talks about
Programs are compiled into C# script assemblies using Roslyn
Would that mean that more System libraries could be used such as the
BitConverter
and other binary packing methods to wrap and unwrap data is accessible?Μerlin
WildWolf31373 Yes in general, though
BitConverter
specifically was exposed to Udon about a month ago so you can use it right nowFax
in progress
Udon 2 is in development. It will enter closed beta testing soon, with an open beta scheduled for later this year.