Log inGet started
Package

DayNight.component

README.md

DayNight

Makes one number field of another component on the same entity follow the time of day, with no code: put it beside a Light on a campfire (component = "Light", field = "intensity", dayValue = 2, nightValue = 9) and the fire burns higher as the light falls and low again by morning. Works for any number field (a light's radius, an Audio volume, ...). mode = "smooth" follows the light continuously; "switch" flips between the two values when the lamps do. It reads the scene's WorldClock, so every player sees the same, and a dark storm counts as dusk. In play the field follows and goes back when play stops; in the editor a saved entity keeps the value you gave it. The code way is worldClockKit.timeofday (TimeOfDay.drive / TimeOfDay.follow).