Demo Scenes¶
The demos connect supplied configurations into inspectable scenes. Use them to understand a workflow, then copy the relevant pattern into your own scene rather than treating every demo object as required setup.
All four scene files are under Assets/Plugins/Sital/Tunal/Demo/Scenes. Open them through Tools > Sital > Tunal > Welcome > Demo Scenes > Open Scene, or open the scene asset directly. Save current work first and resolve the demo dependencies.
Interaction validation pending
Scene references, prefab composition, and the supporting scripts were inspected for this guide. The walkthroughs below still need Play Mode and visual validation in the release Unity environment. See the specific UI limitation for Lifecycle Objects.
Single Context¶
Scene: Tunal Demo - Single Context.unity
This scene combines the Stylized Earth context/presentation preset with the Single Context UI canvas. It is the best starting point for exploring how a running simulation affects an authored sky and environment.
- Enter Play Mode and observe the environment before changing settings.
- Explore the time and location controls in the supplied UI. Make one change at a time so its effect is clear.
- Select the context in the Hierarchy and compare its module status and assigned profiles with what the UI displays.
- Inspect the presentation hierarchy to see which controllers consume the context.
This teaches the relationship between one simulation, its visual consumers, and runtime controls. It does not mean every visible object is a required Tunal component. UI feature availability depends on the modules bound to that UI.
Multi Context¶
Scene: Tunal Demo - Multi Context.unity
The scene contains Earth, Mars, and Fantasy switcher entries and their distinct presentations. Earth is the authored starting entry. A TunalContextSwitcher selects the visible presentation and scene content, while the UI is rebound through its On Context Changed event.
- Enter Play Mode and use the context-selection UI to choose another entry.
- Observe the selected environment and the UI's bound context.
- Inspect the switcher's Contexts list to compare each entry's simulation, presentation, and optional Scene Roots.
- Switch back and check the simulation state. Switching does not itself pause the other clocks.
The scene also includes WorldPersistence. Its presence illustrates multi-context integration; use the world persistence guide for registration, capture and restoration contracts.
Use Multiple Contexts and Switching to reproduce the selection pattern without copying the entire demo scene.
Reactive Objects¶
Scene: Tunal Demo - Reactive Objects.unity
The showcase includes Light Pole, Fireflies, Solar Panel, Moonlit Shrine, Glowing Mushrooms, Seasonal Tree, Halloween Ghost, and Christmas Decorations.
Use the on-screen previous/next controls to select an object group. The showcase script activates that group and publishes its title, description, counter, and generated behavior/condition information. Read the displayed description before adjusting time or date: a date-dependent object may not change merely because the hour changes.
Select the shown object in the Hierarchy to compare its context assignment, reactive conditions, and response component. The useful concept is condition → influence → response: several different visual effects can consume simulation conditions without owning the simulation themselves.
If the previous/next controls do not respond, inspect the showcase controller and the buttons' click-event bindings. These persistent callbacks still require release validation. Use the Hierarchy to inspect an object directly if navigation is unavailable.
Lifecycle Objects¶
Scene: Tunal Demo - Lifecycle Objects.unity
This scene places Wheat, Corn, Tomato, and Pumpkin lifecycle prefab instances beside a Stylized Earth context/presentation. The crop prefabs separate a SystemBasedLifecycle from a SystemBasedLifecyclePresenter, whose stage IDs select the corresponding visual roots.
- Enter Play Mode and inspect one crop's lifecycle component and presenter.
- Compare its profile and current progression with the stage-to-visual mappings.
- Observe progression as the context clock advances; use the Time System Inspector to inspect or adjust the simulated clock if needed.
- Compare another crop's authored configuration. Do not infer that every lifecycle uses the same stage durations or policy.
Showcase UI is not fully connected in this scene
The scene instantiates the Object Showcase canvas, but static inspection found no scene showcase controller or crop item bindings. The inherited navigation buttons have empty targets. Do not rely on those buttons to browse crops; use the Hierarchy and Inspectors for this example until its UI is validated and corrected in the package.
The scene also registers four lifecycle instances with its context persistence component. Registration is separate from visual presentation; it does not imply automatic saving.
Camera navigation¶
The scenes include SceneViewCameraController. Its available gestures include right-mouse look, Alt + left-drag orbit, middle-drag pan, and wheel zoom. Fly movement requires its translation permissions; the lifecycle scene disables XZ/Y translation, so do not expect WASD movement there. Starting a gesture over UI can be ignored by the configured pointer filter.
These are demo navigation controls, not a camera controller your game must use. Touch behavior and input-backend combinations still require testing on target devices.