API Reference
The Bouncer System provides a set of public methods allowing external Udon scripts to interact with it.
Below are the primary methods available to developers.
Methods
SetPlayerSecurityLevel
Updates a player's security level. The caller must have security and can't change their own level. Granting any level also verifies the player.
public void SetPlayerSecurityLevel(int playerId, sbyte level)
Parameters:
| Parameter | Type | Description |
|---|---|---|
playerId | int | The ID of the player whose security level will be updated. |
level | sbyte | The security level to assign. |
SetPlayerVerified
Updates a non-security player's verification state. The caller must have security.
public void SetPlayerVerified(int playerId, bool state)
Parameters:
| Parameter | Type | Description |
|---|---|---|
playerId | int | The ID of the player whose verification state will be updated. |
state | bool | The verification state to assign. |
SetSecurity
Enables or disables the world-wide gate (caller must have security). Turning it off verifies everyone.
public void SetSecurity(bool state)
Parameters:
| Parameter | Type | Description |
|---|---|---|
state | bool | true to enable security mode; otherwise, false. |
SetPlayersListSortMode
Sets the local player's preferred sort order and repaints every registered panel. Only security players can use it. It is never synced — it doesn't change what anyone else sees.
public void SetPlayersListSortMode(bool state)
Parameters:
| Parameter | Type | Description |
|---|---|---|
state | bool | true to sort alphabetically; false to sort by most recent join time. |