| ExitPoints |
|
| EyePosition |
A GameObject representing the eye position |
| IsOccupied |
Returns true if the chair is currently occupied |
| PitchRange |
Pitch range for seated players |
| SeatPosition |
A GameObject representing the seat position |
| SitHeight |
Height offset for sitting position, from -1 (lowest) to 1 (highest) |
| SitPose |
The sitting pose to use when a player is seated |
| TooltipDescription |
A longer description for this chair's tooltip. |
| TooltipIcon |
The icon for this chair's tooltip. Either Material Icons or an Emoji. |
| TooltipTitle |
The title of this chair's tooltip. Empty to disable. |
| YawRange |
Yaw range for seated players |
| AskToLeave |
Called on the host to request leaving the chair. |
| CalculateEyeTransform |
Calculates the eye transform for a seated player |
| CanEnter |
Return true if this player can enter the chair |
| CanLeave |
Return true if this player can leave the chair |
| CanPress |
Chair is usable if the player can enter |
| ClampEyes |
Clamps the eye angles of a seated player between the PitchRange and YawRange |
| DrawGizmos |
Draws the player model sitting in the chair if it's selected |
| Eject |
Called on the client to eject the player from the chair. |
| FindBestExitPoint |
Returns a position to place the player when they exit the chair. This searches
through ExitPoints to find the best one, which is usually the one the player is most
facing towards. |
| GetEyeTransform |
Get the transform representing the eye position when seated |
| GetOccupant |
Gets the player that is currently occupying the chair |
| GetTooltip |
|
| Press |
Called when the player has pressed to use the chair.
Only called if CanPress returned true. |
| Sit |
Called on the client to place the player in the chair. |
| UpdatePlayerAnimator |
Called to update the player's animator when seated |