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.RuntimeSpawnerSettings Class Reference

Global configuration asset for the Runtime Spawner system. Stores editor-only visualization colors and is saved as a project-wide ScriptableObject so all scenes share consistent debug styling. More...

Inheritance diagram for MegaCrush.Spawner.RuntimeSpawnerSettings:

Static Public Member Functions

static RuntimeSpawnerSettings GetOrCreateSettings ()
 Finds an existing settings asset anywhere in the project. If none exists, prompts the user to choose a save location and creates it there.
 
static SerializedObject GetSerializedSettings ()
 Returns a SerializedObject wrapper for custom inspectors.
 

Public Attributes

Color worldExtentsColor = new(0f, 0f, 0.9f, 0.5f)
 Scene gizmo color for world extents volume.
 
Color localAreaSpawnerColor = new(0f, 0.9f, 0f, 0.5f)
 Scene gizmo color for local area spawner volumes.
 
Color waveTriggerColor = new(0.9f, 0.5f, 0f, 0.5f)
 Scene gizmo color for wave trigger volumes.
 
Color waveSpawnpointColor = new(1f, 0f, 0f, 1f)
 Scene gizmo color for wave spawnpoint markers.
 

Static Private Member Functions

static void OpenSettingsAsset ()
 Convenience menu to open/select the settings asset (creates it if missing).
 

Detailed Description

Global configuration asset for the Runtime Spawner system. Stores editor-only visualization colors and is saved as a project-wide ScriptableObject so all scenes share consistent debug styling.

This asset is primarily used for editor gizmos and visualization only. It does not affect runtime spawning behavior. End users typically do not need to interact with or modify this file at runtime.

Member Function Documentation

◆ GetOrCreateSettings()

static RuntimeSpawnerSettings MegaCrush.Spawner.RuntimeSpawnerSettings.GetOrCreateSettings ( )
static

Finds an existing settings asset anywhere in the project. If none exists, prompts the user to choose a save location and creates it there.

Returns
The located or newly created settings instance.

◆ GetSerializedSettings()

static SerializedObject MegaCrush.Spawner.RuntimeSpawnerSettings.GetSerializedSettings ( )
static

Returns a SerializedObject wrapper for custom inspectors.

◆ OpenSettingsAsset()

static void MegaCrush.Spawner.RuntimeSpawnerSettings.OpenSettingsAsset ( )
staticprivate

Convenience menu to open/select the settings asset (creates it if missing).

Member Data Documentation

◆ localAreaSpawnerColor

Color MegaCrush.Spawner.RuntimeSpawnerSettings.localAreaSpawnerColor = new(0f, 0.9f, 0f, 0.5f)

Scene gizmo color for local area spawner volumes.

◆ waveSpawnpointColor

Color MegaCrush.Spawner.RuntimeSpawnerSettings.waveSpawnpointColor = new(1f, 0f, 0f, 1f)

Scene gizmo color for wave spawnpoint markers.

◆ waveTriggerColor

Color MegaCrush.Spawner.RuntimeSpawnerSettings.waveTriggerColor = new(0.9f, 0.5f, 0f, 0.5f)

Scene gizmo color for wave trigger volumes.

◆ worldExtentsColor

Color MegaCrush.Spawner.RuntimeSpawnerSettings.worldExtentsColor = new(0f, 0f, 0.9f, 0.5f)

Scene gizmo color for world extents volume.


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