- UdonSharp typically compiles local variables as class fields, causing recursive function calls to overwrite values unless the recursive attribute is used
- The recursive attribute instructs the compiler to push and pop local variables on a stack, introducing slight performance overhead

VRChat
Join the growing VRChat community as you explore, play, and create the future of social VR!
99,939 Online
419,729 Members
world-development
Summarized from recent messages. Can get things wrong.
- 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
- Custom events are called across the network by chaining SendCustomNetworkEvent nodes consecutively along the white execution line
- Ensure custom event names match the exact string assigned in SendCustomNetworkEvent nodes and recompile the graph
- Text wrapping behavior and line breaks are controlled within the TextMeshPro component settings
- Switching from standard text to UI text requires a Canvas and changing the Udon variable type to TextMeshProUGUI
- Directly working with video players is niche; it's often better to use existing solutions like ProTV or reverse-engineer simpler ones like USharpVideo.
- A key challenge is that the audio source for VRChat video players is created at runtime, requiring custom code to find its reference.
- VRChat allows uploading PCVR-only worlds and making Quest-only worlds, implying the platform sees differential experiences as acceptable.
- Intentionally restricting desktop members to a small box in a hangout world, while VR members can explore freely, is seen by some as an unnecessary and worse solution.
- Animating the train itself through the world using splines, with players glued to the train at stations, is likely the easiest approach for complex movements like turning trains.
- An alternative is to animate the world around the train, allowing players to remain stationary within the train cars, which avoids the need to 'glue' players.

