Manages in-game time visuals and logic.
More...
|
float | timeOfDay |
| Current time of day, ranging from 0 to 24.
|
|
float | dayDurationInMinutes = 1f |
| Duration of a full day in minutes. 1 minute equals 24 hours in-game.
|
|
Light | directionalLight |
| Reference to the directional light representing the sun.
|
|
float | maxSunIntensity = 1f |
| Maximum intensity of the sun during the day.
|
|
float | minSunIntensity = 0f |
| Minimum intensity of the sun during the night.
|
|
Material | daySky |
| Skybox material used during the day. Material with Skybox/Cubemap or Panoramic shader.
|
|
Material | nightSky |
| Skybox material used during the night.
|
|
float | maxExposure = 1.3f |
| Maximum exposure level during the day.
|
|
float | minExposure = 0.3f |
| Minimum exposure level during the night.
|
|
float | skyboxRotationSpeed = 1f |
| Rotation speed of the skybox in degrees per second.
|
|
bool | enableTimePass = false |
| Enables or disables the passage of time.
|
|
float | nightTimeSpeed = 20f |
| Speed multiplier for time progression during the night.
|
|
float | nightOverlayMaxAlpha = 1f |
| Maximum alpha value for the night overlay.
|
|
float | requiredSleepingNPCPercentage = 0.80f |
| Required percentage of NPCs sleeping to trigger night conditions.
|
|
Manages in-game time visuals and logic.
◆ GetCurrentDay()
int DayNightCycle.GetCurrentDay |
( |
| ) |
|
Gets the current day number.
- Returns
- Current day number.
◆ GetCurrentTimeText()
string DayNightCycle.GetCurrentTimeText |
( |
| ) |
|
Gets the current time in "HH:MM" format.
- Returns
- Current time as a string.
◆ dayDurationInMinutes
float DayNightCycle.dayDurationInMinutes = 1f |
Duration of a full day in minutes. 1 minute equals 24 hours in-game.
◆ daySky
Material DayNightCycle.daySky |
Skybox material used during the day. Material with Skybox/Cubemap or Panoramic shader.
◆ directionalLight
Light DayNightCycle.directionalLight |
Reference to the directional light representing the sun.
◆ enableTimePass
bool DayNightCycle.enableTimePass = false |
Enables or disables the passage of time.
◆ maxExposure
float DayNightCycle.maxExposure = 1.3f |
Maximum exposure level during the day.
◆ maxSunIntensity
float DayNightCycle.maxSunIntensity = 1f |
Maximum intensity of the sun during the day.
◆ minExposure
float DayNightCycle.minExposure = 0.3f |
Minimum exposure level during the night.
◆ minSunIntensity
float DayNightCycle.minSunIntensity = 0f |
Minimum intensity of the sun during the night.
◆ nightOverlayMaxAlpha
float DayNightCycle.nightOverlayMaxAlpha = 1f |
Maximum alpha value for the night overlay.
◆ nightSky
Material DayNightCycle.nightSky |
Skybox material used during the night.
◆ nightTimeSpeed
float DayNightCycle.nightTimeSpeed = 20f |
Speed multiplier for time progression during the night.
◆ requiredSleepingNPCPercentage
float DayNightCycle.requiredSleepingNPCPercentage = 0.80f |
Required percentage of NPCs sleeping to trigger night conditions.
◆ skyboxRotationSpeed
float DayNightCycle.skyboxRotationSpeed = 1f |
Rotation speed of the skybox in degrees per second.
◆ timeOfDay
float DayNightCycle.timeOfDay |
Current time of day, ranging from 0 to 24.
◆ Instance
The documentation for this class was generated from the following file: