Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months 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 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T15:53:15.000Z (over 4 years ago)
- Last Synced: 2024-10-30T00:05:00.200Z (4 months ago)
- Topics: csharp, day-night-cycle, game, scene, unity-game-engine
- Language: C#
- Homepage:
- Size: 1.96 MB
- Stars: 36
- Watchers: 9
- Forks: 14
- 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