Overview¶
Tunal is a modular simulation framework for Unity. It connects time, calendars, astronomy, day phases, seasons, and lunar simulation within a context: one independently configured simulation that your scene objects and code can use.
Use a context to give an environment a consistent clock and calendar, drive objects from changing conditions, or keep separate worlds running with different settings. For example, a game can use simulated time for daily routines, a custom calendar for a fictional world, and a presentation that shows the resulting sky and lighting. These are configuration and integration possibilities, not complete gameplay systems supplied by Tunal.
Choose what your project needs¶
| Area | What it provides |
|---|---|
| Simulation | Clock sources and rates, configurable calendars, solar calculations, day phases, seasons, and lunar state |
| Presentation | Context-bound sky, stars, celestial lighting, environment, and cloud controllers |
| Reactive objects | Conditions and responses for effects such as lights, materials, visibility, particles, and transforms |
| Lifecycle | Per-instance stage progression with a separate visual presenter |
| Integration | Runtime UI, context selection, context/world persistence, and optional UI/rendering add-ons |
The simulation and its presentation are separate. A Time System is required for a context; the other simulation systems are optional and have their own dependencies. A context does not require a sky or light to run.
Conversely, adding presentation objects alone does not create or initialize a simulation. They need an appropriate context binding. This separation lets you start with a working clock and add visual features when you need them.
Start with a supplied configuration¶
- Context only provides simulation components without visual presentation.
- Context and Presentation provides both in one prefab hierarchy.
- Presentation provides visual components to pair with a context.
- Presets provide authored Earth, Mars, and fantasy examples. Treat them as starting configurations, not compatibility or scientific-accuracy guarantees.
Find them in the Welcome window. You do not need to build the hierarchy manually for your first scene.
Recommended learning path¶
- Read Requirements and compatibility and Installation.
- Follow Quick Start: your first context to check a functioning clock without rendering configuration.
- Open Single Context to explore a supplied visual environment.
- Learn Contexts and System Ownership, then Simulation and Presentation.
- Reuse or duplicate profiles before adapting the configuration to your project.
For multiple environments, continue with Multiple Contexts and Switching. Then explore simulation, presentation, reactive objects, persistence, and extension APIs.