Runtime Spawner 1.5.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.RuntimeSpawnerInspector Class Reference

Custom Inspector for the Runtime Spawner. More...

Inheritance diagram for MegaCrush.Spawner.RuntimeSpawnerInspector:

Public Member Functions

override void OnInspectorGUI ()
 

Private Member Functions

bool BeginSection (string title, ref bool foldState, string prefKey)
 
void OnEnable ()
 
void RenderDeterminism ()
 
void RenderFactory ()
 
void RenderGlobalSpawner ()
 Render the Global Spawner foldout UI.
 
void RenderSpawnHints ()
 
void RenderLocalSpawner ()
 Render the Local Spawner foldout UI.
 
void RenderWaveSpawner ()
 Render the Wave Spawner foldout UI.
 
void GSHeader (Rect rect)
 
void GSElement (Rect rect, int index, bool isactive, bool isfocused)
 
void GSAdd (ReorderableList list)
 
void GSRemove (ReorderableList list)
 
void WTHeader (Rect rect)
 
void WTElement (Rect rect, int index, bool isactive, bool isfocused)
 
void WTAdd (ReorderableList list)
 
void WTRemove (ReorderableList list)
 
void SRHeader (Rect rect)
 
void SRElement (Rect rect, int index, bool isactive, bool isfocused)
 
void SRAdd (ReorderableList list)
 
void SRRemove (ReorderableList list)
 
void NMAHeader (Rect rect)
 
void NMAElement (Rect rect, int index, bool isactive, bool isfocused)
 
void NMAAdd (ReorderableList list)
 
void NMARemove (ReorderableList list)
 

Static Private Member Functions

static void CreateAndAssignSpawnHintSettings (SerializedProperty settingsProp, SerializedProperty useHintsProp=null)
 
static void CreateAndAssignFactoryAsset (SerializedProperty prop)
 

Private Attributes

bool fold_GlobalSettings = true
 
bool fold_GlobalSpawners = true
 
bool fold_RegionSpawners = true
 
bool fold_WaveSpawners = true
 
bool fold_SpawnHints = true
 
SerializedProperty _useDeterminismProp
 
SerializedProperty _globalSeedProp
 
SerializedProperty _factoryAssetProp
 
ReorderableList globalSpawnerList
 
ReorderableList waveSpawnerList
 
ReorderableList navmeshAreaList
 
ReorderableList spawnRegionList
 
ReorderableList waveTriggerList
 

Static Private Attributes

static RuntimeSpawner entry
 
const string PrefKey_FoldGlobal = "MC_RuntimeSpawnerInspector_Fold_Global"
 
const string PrefKey_Fold_GlobalSpawners = "MC_RuntimeSpawnerInspector_Fold_GlobalSpawners"
 
const string PrefKey_Fold_RegionSpawners = "MC_RuntimeSpawnerInspector_Fold_RegionSpawners"
 
const string PrefKey_Fold_WaveSpawners = "MC_RuntimeSpawnerInspector_Fold_WaveSpawners"
 
const string PrefKey_Fold_SpawnHints = "MC_RuntimeSpawnerInspector_Fold_SpawnHints"
 

Detailed Description

Custom Inspector for the Runtime Spawner.

Member Function Documentation

◆ BeginSection()

bool MegaCrush.Spawner.RuntimeSpawnerInspector.BeginSection ( string title,
ref bool foldState,
string prefKey )
private

◆ CreateAndAssignFactoryAsset()

static void MegaCrush.Spawner.RuntimeSpawnerInspector.CreateAndAssignFactoryAsset ( SerializedProperty prop)
staticprivate

◆ CreateAndAssignSpawnHintSettings()

static void MegaCrush.Spawner.RuntimeSpawnerInspector.CreateAndAssignSpawnHintSettings ( SerializedProperty settingsProp,
SerializedProperty useHintsProp = null )
staticprivate

◆ GSAdd()

void MegaCrush.Spawner.RuntimeSpawnerInspector.GSAdd ( ReorderableList list)
private

◆ GSElement()

void MegaCrush.Spawner.RuntimeSpawnerInspector.GSElement ( Rect rect,
int index,
bool isactive,
bool isfocused )
private

◆ GSHeader()

void MegaCrush.Spawner.RuntimeSpawnerInspector.GSHeader ( Rect rect)
private

◆ GSRemove()

void MegaCrush.Spawner.RuntimeSpawnerInspector.GSRemove ( ReorderableList list)
private

◆ NMAAdd()

void MegaCrush.Spawner.RuntimeSpawnerInspector.NMAAdd ( ReorderableList list)
private

◆ NMAElement()

void MegaCrush.Spawner.RuntimeSpawnerInspector.NMAElement ( Rect rect,
int index,
bool isactive,
bool isfocused )
private

◆ NMAHeader()

void MegaCrush.Spawner.RuntimeSpawnerInspector.NMAHeader ( Rect rect)
private

◆ NMARemove()

void MegaCrush.Spawner.RuntimeSpawnerInspector.NMARemove ( ReorderableList list)
private

◆ OnEnable()

void MegaCrush.Spawner.RuntimeSpawnerInspector.OnEnable ( )
private

◆ OnInspectorGUI()

override void MegaCrush.Spawner.RuntimeSpawnerInspector.OnInspectorGUI ( )

◆ RenderDeterminism()

void MegaCrush.Spawner.RuntimeSpawnerInspector.RenderDeterminism ( )
private

◆ RenderFactory()

void MegaCrush.Spawner.RuntimeSpawnerInspector.RenderFactory ( )
private

◆ RenderGlobalSpawner()

void MegaCrush.Spawner.RuntimeSpawnerInspector.RenderGlobalSpawner ( )
private

Render the Global Spawner foldout UI.

◆ RenderLocalSpawner()

void MegaCrush.Spawner.RuntimeSpawnerInspector.RenderLocalSpawner ( )
private

Render the Local Spawner foldout UI.

◆ RenderSpawnHints()

void MegaCrush.Spawner.RuntimeSpawnerInspector.RenderSpawnHints ( )
private

◆ RenderWaveSpawner()

void MegaCrush.Spawner.RuntimeSpawnerInspector.RenderWaveSpawner ( )
private

Render the Wave Spawner foldout UI.

◆ SRAdd()

void MegaCrush.Spawner.RuntimeSpawnerInspector.SRAdd ( ReorderableList list)
private

◆ SRElement()

void MegaCrush.Spawner.RuntimeSpawnerInspector.SRElement ( Rect rect,
int index,
bool isactive,
bool isfocused )
private

◆ SRHeader()

void MegaCrush.Spawner.RuntimeSpawnerInspector.SRHeader ( Rect rect)
private

◆ SRRemove()

void MegaCrush.Spawner.RuntimeSpawnerInspector.SRRemove ( ReorderableList list)
private

◆ WTAdd()

void MegaCrush.Spawner.RuntimeSpawnerInspector.WTAdd ( ReorderableList list)
private

◆ WTElement()

void MegaCrush.Spawner.RuntimeSpawnerInspector.WTElement ( Rect rect,
int index,
bool isactive,
bool isfocused )
private

◆ WTHeader()

void MegaCrush.Spawner.RuntimeSpawnerInspector.WTHeader ( Rect rect)
private

◆ WTRemove()

void MegaCrush.Spawner.RuntimeSpawnerInspector.WTRemove ( ReorderableList list)
private

Member Data Documentation

◆ _factoryAssetProp

SerializedProperty MegaCrush.Spawner.RuntimeSpawnerInspector._factoryAssetProp
private

◆ _globalSeedProp

SerializedProperty MegaCrush.Spawner.RuntimeSpawnerInspector._globalSeedProp
private

◆ _useDeterminismProp

SerializedProperty MegaCrush.Spawner.RuntimeSpawnerInspector._useDeterminismProp
private

◆ entry

RuntimeSpawner MegaCrush.Spawner.RuntimeSpawnerInspector.entry
staticprivate

◆ fold_GlobalSettings

bool MegaCrush.Spawner.RuntimeSpawnerInspector.fold_GlobalSettings = true
private

◆ fold_GlobalSpawners

bool MegaCrush.Spawner.RuntimeSpawnerInspector.fold_GlobalSpawners = true
private

◆ fold_RegionSpawners

bool MegaCrush.Spawner.RuntimeSpawnerInspector.fold_RegionSpawners = true
private

◆ fold_SpawnHints

bool MegaCrush.Spawner.RuntimeSpawnerInspector.fold_SpawnHints = true
private

◆ fold_WaveSpawners

bool MegaCrush.Spawner.RuntimeSpawnerInspector.fold_WaveSpawners = true
private

◆ globalSpawnerList

ReorderableList MegaCrush.Spawner.RuntimeSpawnerInspector.globalSpawnerList
private

◆ navmeshAreaList

ReorderableList MegaCrush.Spawner.RuntimeSpawnerInspector.navmeshAreaList
private

◆ PrefKey_Fold_GlobalSpawners

const string MegaCrush.Spawner.RuntimeSpawnerInspector.PrefKey_Fold_GlobalSpawners = "MC_RuntimeSpawnerInspector_Fold_GlobalSpawners"
staticprivate

◆ PrefKey_Fold_RegionSpawners

const string MegaCrush.Spawner.RuntimeSpawnerInspector.PrefKey_Fold_RegionSpawners = "MC_RuntimeSpawnerInspector_Fold_RegionSpawners"
staticprivate

◆ PrefKey_Fold_SpawnHints

const string MegaCrush.Spawner.RuntimeSpawnerInspector.PrefKey_Fold_SpawnHints = "MC_RuntimeSpawnerInspector_Fold_SpawnHints"
staticprivate

◆ PrefKey_Fold_WaveSpawners

const string MegaCrush.Spawner.RuntimeSpawnerInspector.PrefKey_Fold_WaveSpawners = "MC_RuntimeSpawnerInspector_Fold_WaveSpawners"
staticprivate

◆ PrefKey_FoldGlobal

const string MegaCrush.Spawner.RuntimeSpawnerInspector.PrefKey_FoldGlobal = "MC_RuntimeSpawnerInspector_Fold_Global"
staticprivate

◆ spawnRegionList

ReorderableList MegaCrush.Spawner.RuntimeSpawnerInspector.spawnRegionList
private

◆ waveSpawnerList

ReorderableList MegaCrush.Spawner.RuntimeSpawnerInspector.waveSpawnerList
private

◆ waveTriggerList

ReorderableList MegaCrush.Spawner.RuntimeSpawnerInspector.waveTriggerList
private

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