ReadonlylocalGet local player information.
ReadonlyplayerGet the number of players currently connected in the room.
ReadonlyremoteGet 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.
Optionalrecursive: 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.