Kanda Players 0.7.0
Loading...
Searching...
No Matches
PlayerPartInstantiationUtils Class Reference

Static Public Member Functions

static bool TrySpawnPlayer (PlatformDevice currentDevice, DynamicBuffer< DeviceSpecificPlayerPrefabs > prefabs, EntityCommandBuffer ecb, bool isRemote, out PlayerPartPrefabs instantiatedParts)
 Pushes commands to a EntityCommandBuffer in order to spawn a player for given device.
 

Member Function Documentation

◆ TrySpawnPlayer()

static bool TrySpawnPlayer ( PlatformDevice currentDevice,
DynamicBuffer< DeviceSpecificPlayerPrefabs > prefabs,
EntityCommandBuffer ecb,
bool isRemote,
out PlayerPartPrefabs instantiatedParts )
inlinestatic

Pushes commands to a EntityCommandBuffer in order to spawn a player for given device.

Parameters
currentDeviceThe target device to spawn player for.
prefabsThe player prefabs to spawn for each device.
ecbThe Entity command buffer to push spawn command to.
isRemoteWhether the spawner is a local or remote spawner.
instantiatedPartsThe player parts that will be spawned once ECB is played back.
Returns
True if a player with this device could be spawned.

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