Skip to main content

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:

ParameterTypeDescription
playerIdintThe ID of the player whose security level will be updated.
levelsbyteThe 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:

ParameterTypeDescription
playerIdintThe ID of the player whose verification state will be updated.
stateboolThe 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:

ParameterTypeDescription
statebooltrue 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:

ParameterTypeDescription
statebooltrue to sort alphabetically; false to sort by most recent join time.