Skip to content

Your first context

Create a context with the supplied prefab and inspect its running clock. This walkthrough starts with simulation only; it does not configure a sky or lighting.

Before you begin

  • Import Tunal into a Unity project and allow script compilation to finish.
  • Open an editable scene outside Prefab Mode.
  • Resolve compilation errors before continuing.

Compatibility validation pending

The Unity-version and platform compatibility matrix has not yet been validated. This page does not establish support for a particular Unity version or render pipeline.

Add a context

  1. Open GameObject > Tunal > Contexts > Context.
  2. Select the instantiated hierarchy and locate its Tunal Context component.
  3. Check the Time (Required) assignment. References must belong to this context, not a different or nested context.
  4. Select the assigned Time System. Set Time Mode to Simulated.
  5. Set Rate Mode to Game Minute Duration and Seconds / Game Minute to 1.
  6. Ensure Paused is off, then enter Play Mode.

Check the result

The Time System's Simulation Time readout should advance. At this rate, one canonical game minute takes one real second when Unity's Time.timeScale is 1.

The context discovers missing references in its owned hierarchy and initializes from its Start callback. An enabled Time System is required. Calendar, astronomy, seasons, day phases, and lunar modules are optional, with dependencies of their own.

A working clock does not confirm every module

A context can initialize while an optional module remains unavailable. Check the context's module status and Console warnings when configuring additional systems.

If the clock does not advance

  • Confirm that the context GameObject and Time System are enabled.
  • Confirm Time Mode is Simulated and Paused is off.
  • Check for duplicate system components or assignments outside the context.
  • Check Unity's time scale if your project changes it.

Next steps