Runtime Spawner 1.2.5
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

Defines how a particular prefab can be spawned by the Runtime Spawner. 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
 Internal counter (not user-editable) of how many are alive.
 
bool useGroupSpawn
 If true, members of this entry spawn in a group relative to the first member.
 
int minGroupSize = 1
 If using group spawns, the minimum group size.
 
int maxGroupSize = 100
 If using group spawns, the maximum group size.
 

Private Member Functions

void OnValidate ()
 

Private Attributes

GameObject instance
 Internal last-spawned instance (not serialized).
 

Detailed Description

Defines how a particular prefab can be spawned by the Runtime Spawner.

Member Function Documentation

◆ OnValidate()

void MegaCrush.Spawner.SpawnEntry.OnValidate ( )
private

Member Data Documentation

◆ currentPopulation

int MegaCrush.Spawner.SpawnEntry.currentPopulation = 0

Internal counter (not user-editable) of how many are alive.

◆ instance

GameObject MegaCrush.Spawner.SpawnEntry.instance
private

Internal last-spawned instance (not serialized).

◆ maxGroupSize

int MegaCrush.Spawner.SpawnEntry.maxGroupSize = 100

If using group spawns, the maximum group size.

◆ 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 using group spawns, the minimum group size.

◆ prefab

GameObject MegaCrush.Spawner.SpawnEntry.prefab

The prefab to spawn.

◆ useGroupSpawn

bool MegaCrush.Spawner.SpawnEntry.useGroupSpawn

If true, members of this entry spawn in a group relative to the first member.


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