2D Day & Night Cycle
PLAYVOR
$5.00
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
03/25(2018) |
5.0 |
11/17(2024) |
5.0 |
Jump AssetStore
Demo
2D Day & Night Cycle is the simple, flexible and effective solution to achieve a believable cycle effect in your 2D game.
How To Use
- Create a material with the Sprites/DayNight shader or the diffuse version.
- Apply the material to your sprites.
- Attach the DayNightCycle2D script to a GameObject.
- Set the material in the script and adjust the settings.
Cycle Settings
- Day length in minutes.
- Current time of day.
- Amount of sunshine hours in a day.
Cycle Effects
- Custom transition curve that controls the rate of change between day and night.
- Blueness which makes the sprites seem more blue.
- Grayness which controls the desaturation.
- Darkness which simply makes the sprites darker.
Flexibility
Adjust the prementioned parameters to your needs. If necessary, create multiple materials if, as an example, the background elements need to be more affected by the night compared to the foreground elements.