◆ TrySpawnPlayer()
Pushes commands to a EntityCommandBuffer in order to spawn a player for given device.
- Parameters
-
currentDevice | The target device to spawn player for. |
prefabs | The player prefabs to spawn for each device. |
ecb | The Entity command buffer to push spawn command to. |
isRemote | Whether the spawner is a local or remote spawner. |
instantiatedParts | The 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:
- Runtime/Spawning/Utils/PlayerPartInstantiationUtils.cs