Kanda Players 0.7.0
Loading...
Searching...
No Matches
LocalPlayerSpawnClientSystem Struct Reference

Implements spawning of local players which can happen before connecting to the server. If there is no local PlayerOrigin component in the scene, this system will find the first PlayerSpawner, spawn the prefabs matching the player device and update its PlayerInfo data. More...

+ Inheritance diagram for LocalPlayerSpawnClientSystem:

Public Member Functions

void OnCreate (ref SystemState state)
 
void OnUpdate (ref SystemState state)
 

Detailed Description

Implements spawning of local players which can happen before connecting to the server. If there is no local PlayerOrigin component in the scene, this system will find the first PlayerSpawner, spawn the prefabs matching the player device and update its PlayerInfo data.

This system consumes the local player name and ID from ILocalPlayerInfoService. If these are unset, mocked values from IPlayerBehaviourSettings will be used instead. This allows for spawning players in local sessions without further setup.


The documentation for this struct was generated from the following file: