Skip to content
ct

Class

TimeOfDayDirectionalLight3D

Generated GDScript class reference for CalendarTime.TimeOfDayDirectionalLight3D.

Status
Current
Version
v2.0
Updated
Generated from GDScript addon source

Source: addons/calendar_time/game_time/lighting/time_of_day_directional_light_3d.gd

Syntax

class TimeOfDayDirectionalLight3D extends DirectionalLight3D

Members

NameKindSummary
clockPropertyTransitions DirectionalLight3D colour/energy when times of day switch on the day-night service. 3D peer of [TimeOfDayDirectionalLight2D]. Does NOT own time-of-day state — reacts to the shared [GameClock] bus: - [signal TimeSignalBus.time_of_day_changed] - [signal TimeSignalBus.day_night_transition_progress_changed] Applies [member TimeOfDayLightSettings.light_color] → [member light_color] and [member TimeOfDayLightSettings.energy] → [member light_energy]. [member TimeOfDayLightSettings.height] is 2D-only and is ignored here.
lighting_groupPropertyThe settings group defining what light settings should be at given times of day.
transition_curvePropertyOptional. Remaps transition progress (0–1) before interpolating settings.
print_debugPropertyWhether to print extra debug messages to console (debug only).
transition_progressPropertyProgress controlling how far light values are between last and current TOD. [member GameTimeProgress.progress] is in [0.0, 1.0].
current_settingsProperty
last_settingsProperty
dtProperty
logicProperty
todProperty
prev_todProperty
progressProperty
start_light_transitionMethod
get_lighting_settingMethod
set_current_light_valuesMethod
adjusted_progressProperty
get_progress_colorMethod
validateMethod
problemsProperty
problemsProperty
problemsProperty