Skip to main content

STSeat

class StageTime.SDK.STSeat

A seat (like VRCStation). Players sit by clicking it and stand up with Jump. Needs a collider. Scripts on the same GameObject get OnSeatEntered and OnSeatExited on every player's device.

Add it with Add Component → StageTime/ST Station.

Fields​

enterLocation​

Transform enterLocation

Where the seated player is placed (forward = facing). Empty = this object.

exitLocation​

Transform exitLocation

Where the player stands after leaving. Empty = in front of the seat.

disableExit​

bool disableExit

Players cannot leave by themselves (a script calls StandUp).

Properties​

seatedPlayer​

StageTimePlayer seatedPlayer

The seated player, or null.

Methods​

Sit​

void Sit(StageTimePlayer player)

Seats the local player.

StandUp​

void StandUp(StageTimePlayer player)

Makes the local player stand up and leave the seat.