ContinousNetworkEntitySpawner
public class ContinousNetworkEntitySpawner : MonoBehaviour
{
public bool needToSpawn = true;
public float spawnTimer = 0;
public float spawnTimerMax = 5;
public int maxOnScreenOfThisType = 5;
public NetworkEntityType networkEntityType;
//...
This works similar to the SingleNetworkEntitySpawner, however it will reset itself and spawn again. Setting a max on screen there can be ensures we don’t overfill the play space with too many entities on screen and possibly creating undesirable network conditions(currently not sure how many entities a server can handle, but only the closest to a player are updated to make sure we don’t break packet sizes if you want to experiment with a large number).
In the example this is being used to spawn in the Glob enemies