using UdonSharp; using VRC.SDKBase; using VRC.Udon; | using StageTime.SDK; |
UdonSharpBehaviour | StageTimeBehaviour |
[UdonSynced] | [Synced] |
[UdonBehaviourSyncMode(...)] + RequestSerialization() | not needed: changes are sent automatically (RequestSerialization() still compiles) |
VRCPlayerApi | StageTimePlayer |
Networking.LocalPlayer, IsMaster, IsOwner, GetOwner, SetOwner | same |
Networking.GetServerTimeInSeconds() / ...InMilliseconds() | same, plus GetServerTick() and GetTickRate() |
Utilities.IsValid | same |
NetworkEventTarget.All / Owner | same, plus Others and Self |
SendCustomEvent, SendCustomNetworkEvent, SendCustomEventDelayedSeconds / Frames | same |
GetProgramVariable / SetProgramVariable | same |
Interact, OnDeserialization, OnPlayerJoined / Left, OnOwnershipTransferred | same |
OnPickup, OnDrop, OnPickupUseDown / Up | same |
OnStationEntered / Exited | OnSeatEntered / OnSeatExited |
InputJump, InputUse, InputGrab, InputDrop, InputMoveHorizontal / Vertical, InputLookHorizontal / Vertical (UdonInputEventArgs) | OnInputJump(bool, STInputArgs) and so on (Player input); also StageTimeInput.move / look / GetButton to read them every frame, GetButtonValue for how far a trigger is pulled (0 to 1), and OnInputSecondaryUse for the left trigger |
OnPlayerTriggerEnter / Exit | same |
InteractionText, DisableInteractive | same |
VRC_SceneDescriptor | ST World |
VRC_Pickup + VRC_ObjectSync | ST Pickup (always synced; add a Rigidbody for physics and throwing) |
VRCObjectSync (Respawn, SetKinematic, SetGravity) | ST Object Sync (same methods) |
VRCStation (UseStation, ExitStation, stationEnterPlayerLocation, PlayerMobility, …) | ST Seat (Sit, StandUp, enterLocation, takeControls, …); seats on moving objects carry their players |
VRCUnityVideoPlayer (PlayURL, Pause, SetTime, OnVideoStart, …) | ST Video Player: synced by StageTime (no owner sync script), direct .mp4 links only |
VRC_MirrorReflection | ST Mirror |
VRC_SpatialAudioSource (Gain, EnableSpatialization, …) | ST Spatial Audio Source (gain, spatialize, roomAcoustics, reverbSend, volumetricRadius); distance falloff comes from the Audio Source's own 3D settings |
VRCImageDownloader.DownloadImage + OnImageLoadSuccess / Error | ST Image Loader component: shows the image on a renderer or Raw Image for you; same event names without a parameter (read result, width, height, error); one image per loader, freed when the next arrives |
VRCStringDownloader.LoadUrl + OnStringLoadSuccess / Error | ST String Downloader component: same event names without a parameter (read result / error); for big lists use an ST Data Table (search and sort done by StageTime) |
| Udon queue prefabs (synced arrays + owner logic) | ST Queue: synced by StageTime, checked on one device; your script decides what the first entry does |
Networking.IsInstanceOwner, player.isInstanceOwner | isInstanceOwner, plus isRoomHost and isModerator (roles) |
VRC_UiShape | added automatically to canvases with buttons |
InputField / TMP_InputField, Dropdown / TMP_Dropdown | same, see UI and interaction; the right keyboard is added for each device; set dropdown options with DropdownOptions |
| UdonBehaviour component + program asset | just your script component |
Button → UdonBehaviour.SendCustomEvent("Name") | Button → YourScript.Name directly |
| Build & Test | StageTime SDK → Build Window |
| ClientSim | local preview (single player, plain C#) |