Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 2.43 KB

README.md

File metadata and controls

55 lines (36 loc) · 2.43 KB

GitHub stars GitHub forks GitHub watchers GitHub followers

GitHub repo size GitHub language count GitHub top language GitHub repo license GitHub last commit

Patreon donate button

Day-Night Cycle

An Easy and Simple solution for day-night cycle in Unity game engine.

Screen

How to use

To use simply import DayNightCycle.cs and Editor/DayNightCycleEditor.cs into your project. Assign DayNightCycle.cs to a directional light in your scene and play around with the settings. Then assign your Directional light and a procedural skybox material in the Lighting Settings. You may also lower the Reflection Intensity to get get darker scenes during night.

Screen Screen

Requirements

Tested in the 5.5 beta but should work in previous versions too. Procedural Skybox material is needed.

TODO

  • Presets (maybe)
  • Range sliders for min-max variables
  • Quick method that returns in game time(hours:minutes:seconds)
Patreon donate button