 
Customizable day-night cycle system with dynamic lighting, skybox blending, fog, ambience, and UI clock. Easy setup for immersive environments.The Pro Day & Night Cycle System is a fully customizable environment controller for Unity. It simulates natural or stylized day-night cycles with adjustable sun and moon movement, smooth skybox blending, dynamic ambient lighting, fog transitions, shadow control, and adaptive audio ambience. Define sunrise and sunset times freely to shape the rhythm of your world. Perfect for open-world games, survival experiences, simulations, or any project that requires an immersive time-of-day system.Option to pause and resume time (useful for cutscenes or customisation).Customizable Time ControlAdjustable day length (set how many real seconds a full 24h cycle lasts).Manual time progression or sync with the player’s computer time.Supports both visual meshes and directional lights.Sun & Moon SystemIndependent pivots for realistic or stylized orbital paths.Adjustable inclination (tilt) and direction (yaw) for both sun and moon.Radius control for positioning celestial bodies relative to the scene.Adjustable shadow strength curve tied to time of day.Lighting & EnvironmentDynamic sunlight intensity and color gradients throughout the day.Adaptive moonlight intensity with night-time color control.Full control over ambient light color via gradient.Supports Procedural skybox with adjustable sky tint and atmosphere thickness.Skybox BlendingSupports Cubemap blending (smooth transition between day and night skyboxes).Fog density curve for smooth environmental transitions.Fog ControlToggleable fog system.Fog color driven by gradient across the day-night cycle.Automatic crossfading with adjustable fade duration.Audio AmbienceSeparate day/night audio sources.Toggle visibility via inspector.UI Clock (Optional)On-screen time display using TextMeshPro (24h format).Demonstrates event handling when switching between day and night.Demo SceneIncludes an example setup showing how to use the system.I used AI to assist with code generation through an iterative process. This helped me develop readable, modular, and easy-to-maintain scripts. AI was also used to research best practices for asset folder structure and to help draft the user manual. Throughout development, I experimented with many approaches and retained only the most effective and practical solutions, refining them with manual improvements and testing with the different unity version.
 
 
 
  
  
