Runtime Spawner 1.0.0
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
Loading...
Searching...
No Matches
MegaCrush.Spawner.SpawnEntry Class Reference

Each object that we spawn has a spawn definition. More...

Inheritance diagram for MegaCrush.Spawner.SpawnEntry:

Public Attributes

GameObject prefab
 The prefab to spawn.
 
int maxPopulation = 100
 How many of this object are allowed at one time.
 
int currentPopulation = 0
 
bool useGroupSpawn
 Should this object spawn in a group (will use the first object's position and generate an offset from.
 
int minGroupSize = 1
 If we are spawning in a group, min / max sizes.
 
int maxGroupSize = 100
 

Private Attributes

GameObject instance
 Internal - the instance that was spawned.
 

Detailed Description

Each object that we spawn has a spawn definition.

Member Data Documentation

◆ currentPopulation

int MegaCrush.Spawner.SpawnEntry.currentPopulation = 0

◆ instance

GameObject MegaCrush.Spawner.SpawnEntry.instance
private

Internal - the instance that was spawned.

◆ maxGroupSize

int MegaCrush.Spawner.SpawnEntry.maxGroupSize = 100

◆ maxPopulation

int MegaCrush.Spawner.SpawnEntry.maxPopulation = 100

How many of this object are allowed at one time.

◆ minGroupSize

int MegaCrush.Spawner.SpawnEntry.minGroupSize = 1

If we are spawning in a group, min / max sizes.

◆ prefab

GameObject MegaCrush.Spawner.SpawnEntry.prefab

The prefab to spawn.

◆ useGroupSpawn

bool MegaCrush.Spawner.SpawnEntry.useGroupSpawn

Should this object spawn in a group (will use the first object's position and generate an offset from.


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