Skip to main content

PreAuthenticated

Gets called on a separate thread when the player has pre-authenticated. DO NOT call Unity APIs in handlers of this event; doing so may cause the server to crash.

Start a script section

!-- OnEvent PreAuthenticated
-- require $evUserId $evIpAddress $evExpiration &evFlags $evRegion &evSignature *evConnectionRequest $evReaderStartPosition

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerPreAuthenticatedEventArgs

Injected variables

VariableTypeDescription
$evUserIdtext valueGets the user ID of the player.
$evIpAddresstext valueGets the IP Address of the player.
$evExpirationnumber valueGets the expiration of the authentication.
&evFlagscollection of CentralAuthPreauthFlags enum valuesGets the pre-authentication flags.
$evRegiontext valueGets the region of the origin.
&evSignaturecollection of number valueGets the signature of auth.
*evConnectionRequestreference to ConnectionRequest objectGets the connection request to server.
$evReaderStartPositionnumber valueGets the start position of stream.