The local area spawner allows us to weight spawning heavier / lighter when the player enters a given area of the map. Note: does not have it's own API, this is driven by the Runtime Spawner.
More...
|
bool | IsActiveSpawner () |
| Query if this spawn region is active (has the player in the area)
|
|
void | ShowHide (bool showHide) |
| Editor only, draw the volume in the scene view.
|
|
|
BoxCollider | ThisCollider [get, set] |
| This spawn area is defined by a collider (read only)
|
|
List< string > | RestrictToNavmeshAreas [get, set] |
| (optional) restrict spawners in this area to a specific navmesh area
|
|
List< SpawnEntry > | CustomRegionSpawners [get, set] |
| The list of spawners that should be spawned in this region (read-only)
|
|
int | MaxObjectCount [get] |
| Population control: max number of objects we should spawn in this region.
|
|
int | MinObjectCount [get] |
| Population control: minimum number of objects we should spawn in this region.
|
|
The local area spawner allows us to weight spawning heavier / lighter when the player enters a given area of the map. Note: does not have it's own API, this is driven by the Runtime Spawner.
◆ GetSettings()
◆ IsActiveSpawner()
bool MegaCrush.Spawner.LocalAreaSpawner.IsActiveSpawner |
( |
| ) |
|
Query if this spawn region is active (has the player in the area)
- Returns
- true if the player is within the region, false if not
◆ OnDrawGizmos()
void MegaCrush.Spawner.LocalAreaSpawner.OnDrawGizmos |
( |
| ) |
|
|
private |
◆ OnEnable()
void MegaCrush.Spawner.LocalAreaSpawner.OnEnable |
( |
| ) |
|
|
private |
◆ OnTriggerExit()
void MegaCrush.Spawner.LocalAreaSpawner.OnTriggerExit |
( |
Collider | other | ) |
|
|
private |
◆ OnTriggerStay()
void MegaCrush.Spawner.LocalAreaSpawner.OnTriggerStay |
( |
Collider | other | ) |
|
|
private |
◆ ShowHide()
void MegaCrush.Spawner.LocalAreaSpawner.ShowHide |
( |
bool | showHide | ) |
|
Editor only, draw the volume in the scene view.
- Parameters
-
showHide | True to show / false to hide |
◆ Start()
void MegaCrush.Spawner.LocalAreaSpawner.Start |
( |
| ) |
|
|
private |
◆ customRegionSpawners
List<SpawnEntry> MegaCrush.Spawner.LocalAreaSpawner.customRegionSpawners = new() |
|
private |
The actual spawners that we want to spawn in this region.
◆ isActiveSpawner
bool MegaCrush.Spawner.LocalAreaSpawner.isActiveSpawner |
|
private |
is the player within this region
◆ maxObjectCount
int MegaCrush.Spawner.LocalAreaSpawner.maxObjectCount = 100 |
|
private |
◆ minObjectCount
int MegaCrush.Spawner.LocalAreaSpawner.minObjectCount = 1 |
|
private |
◆ playerTag
string MegaCrush.Spawner.LocalAreaSpawner.playerTag |
|
private |
Player tag to look for, set by the runtime spawner.
◆ restrictToNavmeshAreas
List<string> MegaCrush.Spawner.LocalAreaSpawner.restrictToNavmeshAreas = new() |
|
private |
Should we restrict spawning to specific navmesh areas?
◆ settings
◆ showSpawnVolumes
bool MegaCrush.Spawner.LocalAreaSpawner.showSpawnVolumes = true |
|
private |
debug / editor only: show the spawn area in the scene view
◆ spawner
◆ thisCollider
BoxCollider MegaCrush.Spawner.LocalAreaSpawner.thisCollider |
|
private |
The collider that defines our local region.
◆ CustomRegionSpawners
List<SpawnEntry> MegaCrush.Spawner.LocalAreaSpawner.CustomRegionSpawners |
|
getset |
The list of spawners that should be spawned in this region (read-only)
◆ MaxObjectCount
int MegaCrush.Spawner.LocalAreaSpawner.MaxObjectCount |
|
get |
Population control: max number of objects we should spawn in this region.
◆ MinObjectCount
int MegaCrush.Spawner.LocalAreaSpawner.MinObjectCount |
|
get |
Population control: minimum number of objects we should spawn in this region.
◆ RestrictToNavmeshAreas
List<string> MegaCrush.Spawner.LocalAreaSpawner.RestrictToNavmeshAreas |
|
getset |
(optional) restrict spawners in this area to a specific navmesh area
◆ ThisCollider
BoxCollider MegaCrush.Spawner.LocalAreaSpawner.ThisCollider |
|
getset |
This spawn area is defined by a collider (read only)
◆ onPlayerIsInRegion
Action<LocalAreaSpawner, bool> MegaCrush.Spawner.LocalAreaSpawner.onPlayerIsInRegion |
|
static |
Listen to this event to know when the player enters or leaves this region.
The documentation for this class was generated from the following file:
- D:/projects/Asset Store Packages/com.pixelwizards.runtimespawner/Code/Runtime/Components/LocalAreaSpawner.cs