https://github.com/EnricoMonese/DayNightCycle
Easy Day-Night Cycle for Unity game engine
https://github.com/EnricoMonese/DayNightCycle
csharp day-night-cycle game scene unity-game-engine
Last synced: about 1 year ago
JSON representation
Easy Day-Night Cycle for Unity game engine
- Host: GitHub
- URL: https://github.com/EnricoMonese/DayNightCycle
- Owner: EnricoMonese
- License: mit
- Created: 2016-09-05T20:22:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T15:53:15.000Z (over 5 years ago)
- Last Synced: 2025-04-07T03:24:23.516Z (about 1 year ago)
- Topics: csharp, day-night-cycle, game, scene, unity-game-engine
- Language: C#
- Homepage:
- Size: 1.96 MB
- Stars: 36
- Watchers: 8
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README









# Day-Night Cycle
An Easy and Simple solution for day-night cycle in Unity game engine.
![Screen][Image3]
## 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][Image1]
![Screen][Image2]
## 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)
[Image1]: http://www.edraflame.com/daynightcycle-github-images/inspector.png
[Image2]: http://www.edraflame.com/daynightcycle-github-images/lighting-settings.png
[Image3]: http://www.edraflame.com/daynightcycle-github-images/screen.png
[Kino]: https://github.com/search?q=kino+user%3Akeijiro&type=Repositories