Technical Details
Technical Details
Runtime Spawner 2.0 is built as a modular, package-based system using Unity’s Package Manager (UPM).
Unity Version
Runtime Spawner 2.0 is built and tested with:
Unity 2022.3 LTS and newer
It may work on earlier versions, but compatibility is not guaranteed - particularly for:
AI Navigation (Nav Mesh)
Editor tooling and UI
If you are targeting an older Unity version, please contact support.
Package Structure
Runtime Spawner 2.0 is no longer a single package.
It is split into multiple independent UPM packages, allowing you to include only what your project needs.
Core Packages
com.megacrush.runtimespawner.coreCore spawning systems and execution pipelinecom.megacrush.runtimespawner.sharedShared utilities and editor tooling
Addon Packages
com.megacrush.spawner.globalcom.megacrush.spawner.localareacom.megacrush.spawner.wavescom.megacrush.spawner.spawnpointscom.megacrush.spawner.specialencounters
Each addon provides a specific spawning behavior and depends on the Core package.
Networking Packages
com.megacrush.runtimespawner.networking(shared abstractions)com.megacrush.spawner.networking.puncom.megacrush.spawner.networking.fusion
Addon-specific networking bridges are also provided (e.g. Waves, Local Area).
Object Pooling
Runtime Spawner uses a separate package for pooling:
com.megacrush.objectpool
This is used by default factories and can be replaced if needed.
Dependencies
Core Runtime
The Core package has no required external dependencies beyond Unity itself.
Sample Content
Sample scenes may depend on Unity packages such as:
AI Navigation
TextMeshPro
These are installed automatically when importing samples.
If you remove the samples, these dependencies can also be removed.
Networking (Optional)
Networking support requires installing the corresponding third-party SDK:
Photon PUN 2+
Photon Fusion 2.x
These are not included with Runtime Spawner and must be installed separately.
Scripting Defines
Runtime Spawner uses compile-time defines to enable integrations:
PUN_2_OR_NEWER→ enables PUN integrationFUSION_WEAVER→ enables Fusion integration
These are typically set automatically when the corresponding packages are installed.
Profiling
To enable profiling markers:
Add the following scripting define:
Location:
Edit → Project Settings → Player → Scripting Define Symbols
This enables additional runtime profiling hooks for debugging and performance analysis.
Extensibility
Runtime Spawner is designed to be extended:
Custom object factories (replace pooling or networking)
Custom addons (define new spawning behavior)
Custom prefab sources
Alternative navigation or placement systems
The system does not require Nav Mesh specifically and can be adapted to other solutions.
Notes
Core functionality does not depend on networking or addons
Addons can be used independently or combined
Networking is fully optional and layered on top of Core
Last updated