Readonly
localGet local player information.
Readonly
playerGet the number of players currently connected in the room.
Readonly
remoteGet the information of all remote players in the room.
Send a specific event.
Event name
Optional
Rest
...args: any[]Event parameters
Retrieve player information using Entity.
Player's Entity.
Optional
recursive: booleanWhether to allow the incoming entity to be a child node of the player, default is false.
Retrieve player information using Network ID.
Player's Network ID.
Unsubscribe from a specific event.
Event name.
Callback function.
Subscribe to a specific event.
Event name.
Callback function.
Define PlayerService interface.