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
D
Dark Karma
how about support for scriptable objects?
cause rn I kinda need to use a couple of empties when making things like character data and categorizing under their own category empties.
But with scriptable objects that wont be necessary anymore, since I can just have 1 script that works as a database of sorts and in it I can put all my characters in their own categories accordingly.
a
aljowen
Any information on how this may affect networking and sync? Will it still function the same way and perform the same way? Or can we expect structural changes or performance uplifts?
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
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.
Furriest
Fax Is this still under way? Heard some news about one of the devs working upon it being dismissed.
Fax
Furriest: Yep, still working on it!