Skip to main content
Discovery icon for VRChat Discord server

VRChat

90,065 Online
419,706 Members
# world-development3 people

static classes in UdonSharp

Static classes with generic methods and recursion unexpectedly execute in Editor without typical Udon restrictions or required attributes.

  • PersistenceUtilities in the official HealthBar example is a non-behavior static class with generic function overloads that works in the Editor despite Udon documentation rules
  • Methods in this custom SDK addition contain exposed Udon functions that may be unpacked directly by the UdonSharp compiler
  • Tests showed recursive calls inside static methods ran in the Editor UdonVM without requiring the standard RecursiveMethod attribute
  • Removing the static keyword from the utility class does not break compilation or execution in this scenario
Summarized from recent messages, might be inaccurate

More conversations

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App