Skip to main content

StageTime Creators

Build interactive, multiplayer worlds for StageTime in Unity, and script them in C#.

If you have made VRChat worlds with UdonSharp, you already know most of this. You write a script that derives from StageTimeBehaviour, add it to a GameObject, fill its fields in the Inspector and point UI buttons straight at its methods. [Synced] fields, ownership, Interact(), OnDeserialization() and SendCustomNetworkEvent work the way you expect. See Coming from VRChat for the full name map.

using StageTime.SDK;
using UnityEngine;

public class RotatingCube : StageTimeBehaviour
{
public float degreesPerSecond = 90f; // set in the Inspector

[Synced] private bool spinning = true; // the same for everyone in the room

private void Update()
{
if (spinning) transform.Rotate(0f, degreesPerSecond * Time.deltaTime, 0f);
}

// Runs when a player clicks the cube.
public override void Interact()
{
Networking.SetOwner(Networking.LocalPlayer, gameObject); // only the owner can change synced values
spinning = !spinning; // sent to everyone automatically
}
}

What a world is​

A StageTime world is a Unity prefab with an ST World component on its root. Everything inside it (geometry, lights, UI, your scripts and the StageTime components) is packed into one bundle per platform and loaded into a StageTime room. Up to 40 players can be in a room, on PC, VR headsets and phones.

How scripts run​

Your scripts are compiled to WebAssembly and run in a sandbox on every player's device. They can use a broad part of the Unity API (the full list) but nothing outside your world: no files, web requests, scene loading or player data. A script that crashes or loops forever is stopped on its own, and the rest of the world keeps running.

Where to go next​