Setting a Custom Entry Position for a VRCStation (stationEnterPlayerLocation)
How It Works:
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
using VRC.SDK3.Components;
public class CustomEntryPoint : UdonSharpBehaviour
{
public VRCStation station; // Assign a VRCStation in the Inspector
public Transform entryPoint; // Assign a Transform in the Inspector
public override void Interact()
{
if (station != null && entryPoint != null)
{
station.stationEnterPlayerLocation = entryPoint;
Debug.Log("Player entry point set to: " + entryPoint.position);
}
else
{
Debug.LogWarning("Missing station or entry point transform.");
}
}
}
PreviousToggling Seated Mode in a VRCStation (seated)NextSetting a Custom Exit Position for a VRCStation (stationExitPlayerLocation)
Last updated