Runtime Spawner 1.3.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.RuntimeSpawnerMenu Class Reference
Inheritance diagram for MegaCrush.Spawner.RuntimeSpawnerMenu:

Static Public Member Functions

static void AddRuntimeSpawnerFullStack ()
 Adds a RuntimeSpawner, SpawnDirector, and SpecialEncounterManager to the selected object (or creates a new "Runtime Spawner" object if none is selected). Also creates a "Wave Triggers" child for organizational convenience.
 
static bool ValidateAddRuntimeSpawnerFullStack ()
 Validation stub for the full-stack creation menu item. Always returns true so the item is enabled.
 
static void CreateWaveSpawnPoint ()
 Creates a new WaveSpawnPoint in the Scene, positioned near the SceneView camera. If an object is selected, the new spawn point becomes its child.
 
static bool ValidateCreateWaveSpawnPoint ()
 Validation stub for the "Create Wave Spawn Point" menu item. Always returns true so the item is enabled.
 
static void CreateSpawnHint ()
 
static bool ValidateCreateSpawnHint ()
 

Static Private Member Functions

static void OpenUserManual ()
 
static void OpenAPIDocumentation ()
 
static void GetSupport ()
 
static void OpenDiscord ()
 
static Vector3 GetSceneSpawnPosition ()
 Heuristic spawn position near the active SceneView camera. Falls back to Vector3.zero if no SceneView is available.
 
static GameObject EnsureSelectionOrCreate (string name)
 Ensures there is an active selection. If none exists, creates a new GameObject with the given name at a reasonable SceneView-relative position and selects it.
 
static T EnsureComponent< T > (GameObject go)
 Ensures the target GameObject has a component of type T . If missing, adds it via Undo so the operation is undoable.
 

Static Private Attributes

const string RootMenu = "GameObject/Runtime Spawner/"
 

Member Function Documentation

◆ AddRuntimeSpawnerFullStack()

static void MegaCrush.Spawner.RuntimeSpawnerMenu.AddRuntimeSpawnerFullStack ( )
static

Adds a RuntimeSpawner, SpawnDirector, and SpecialEncounterManager to the selected object (or creates a new "Runtime Spawner" object if none is selected). Also creates a "Wave Triggers" child for organizational convenience.

◆ CreateSpawnHint()

static void MegaCrush.Spawner.RuntimeSpawnerMenu.CreateSpawnHint ( )
static

◆ CreateWaveSpawnPoint()

static void MegaCrush.Spawner.RuntimeSpawnerMenu.CreateWaveSpawnPoint ( )
static

Creates a new WaveSpawnPoint in the Scene, positioned near the SceneView camera. If an object is selected, the new spawn point becomes its child.

◆ EnsureComponent< T >()

static T MegaCrush.Spawner.RuntimeSpawnerMenu.EnsureComponent< T > ( GameObject go)
staticprivate

Ensures the target GameObject has a component of type T . If missing, adds it via Undo so the operation is undoable.

Type Constraints
T :Component 

◆ EnsureSelectionOrCreate()

static GameObject MegaCrush.Spawner.RuntimeSpawnerMenu.EnsureSelectionOrCreate ( string name)
staticprivate

Ensures there is an active selection. If none exists, creates a new GameObject with the given name at a reasonable SceneView-relative position and selects it.

◆ GetSceneSpawnPosition()

static Vector3 MegaCrush.Spawner.RuntimeSpawnerMenu.GetSceneSpawnPosition ( )
staticprivate

Heuristic spawn position near the active SceneView camera. Falls back to Vector3.zero if no SceneView is available.

◆ GetSupport()

static void MegaCrush.Spawner.RuntimeSpawnerMenu.GetSupport ( )
staticprivate

◆ OpenAPIDocumentation()

static void MegaCrush.Spawner.RuntimeSpawnerMenu.OpenAPIDocumentation ( )
staticprivate

◆ OpenDiscord()

static void MegaCrush.Spawner.RuntimeSpawnerMenu.OpenDiscord ( )
staticprivate

◆ OpenUserManual()

static void MegaCrush.Spawner.RuntimeSpawnerMenu.OpenUserManual ( )
staticprivate

◆ ValidateAddRuntimeSpawnerFullStack()

static bool MegaCrush.Spawner.RuntimeSpawnerMenu.ValidateAddRuntimeSpawnerFullStack ( )
static

Validation stub for the full-stack creation menu item. Always returns true so the item is enabled.

◆ ValidateCreateSpawnHint()

static bool MegaCrush.Spawner.RuntimeSpawnerMenu.ValidateCreateSpawnHint ( )
static

◆ ValidateCreateWaveSpawnPoint()

static bool MegaCrush.Spawner.RuntimeSpawnerMenu.ValidateCreateWaveSpawnPoint ( )
static

Validation stub for the "Create Wave Spawn Point" menu item. Always returns true so the item is enabled.

Member Data Documentation

◆ RootMenu

const string MegaCrush.Spawner.RuntimeSpawnerMenu.RootMenu = "GameObject/Runtime Spawner/"
staticprivate

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