Conditions and influence¶
A condition reads one context system and maps a metric to influence. Use a window or boolean for an on/off decision, a ramp for continuous blending, and multiple conditions when an effect needs more than one prerequisite.
Available sources¶
| Source | Metrics |
|---|---|
| Time | Hours Window (canonical or display time), Normalized Day Progress |
| Calendar | Year Progress, Month Progress, Month Number, Date Window, Day Of Week Name |
| Astronomy | Solar Elevation, Solar Azimuth, Solar Exposure, Daylight, Polar Day, Polar Night |
| Day Phase | Selected phase names, Phase Progress, Regular/Polar Day/Polar Night palette weights |
| Lunar | Illuminated Fraction, Cycle Progress, Elevation, Above Horizon, discrete Phase, Waxing |
| Season | Selected Seasons, Season Progress, Cycle Progress, Selected Tracks |
Clock fields are hours/minutes, solar/lunar angular metrics are degrees, and progress/weights are normalized. Choose Use Display Time for a player-facing custom-hour window; otherwise time windows use canonical 24-hour units. A window from evening to morning wraps midnight. Calendar date windows compare month/day and can wrap the year; they do not select a specific year. Weekday names match case-insensitively.
Phase selections use the available profile phase names. Seasonal selections use stable season/track IDs, not list position. Their result can be a weight where latitude/hemisphere influences blend; do not assume every selected-season condition is strictly binary.
Numeric evaluation¶
- WithinRange: inclusive minimum/maximum interval, independent of which endpoint you entered first.
- OutsideRange: complement of that interval for an available numeric source.
- Ramp: minimum→0, maximum→1, clamped. Reversing endpoints reverses the ramp. Equal endpoints act as a threshold.
- Invert: complements an available condition's evaluated influence.
Missing, disabled, or uninitialized systems yield zero before inversion. This prevents “not daylight” from accidentally activating because Astronomy was never configured. Invert is therefore not a workaround for a missing dependency.
Compose conditions¶
For a light active only at night during a date window, add Astronomy/Daylight with Invert and Calendar/Date Window, then select All. For either of two independent activation reasons, choose Any. All is minimum; Any is maximum. Empty conditions on a ready context mean full influence.
There is no serialized nested AND/OR expression tree in this component. If you need (A and B) or C, evaluate the explicit policy in your own component and drive manual influence rather than inventing unsupported nested groups in the Inspector.
Use Request Immediate Re-evaluation in Play Mode to inspect the final signal without waiting for the configured response fade. When multi-editing components with different condition-list lengths, the Inspector asks you to edit the lists individually rather than silently merging them.
Related: reactive workflow, custom policies, day phases.