Toggling Seated Mode in a VRCStation (seated)
How It Works:
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
using VRC.SDK3.Components;
public class ToggleSeatedMode : UdonSharpBehaviour
{
public VRCStation station; // Assign a VRCStation in the Inspector
public override void Interact()
{
if (station != null)
{
// Toggle seated mode
station.seated = !station.seated;
Debug.Log("Seated mode: " + station.seated);
}
}
}
PreviousPreventing Players from Exiting a Station with disableStationExitNextSetting a Custom Entry Position for a VRCStation (stationEnterPlayerLocation)
Last updated