11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
游戏工具
此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/7
Transform your Unity projects with the Lighting Manager script. Achieve realistic day-night cycles, dynamic lighting effects, and immersive environments effortlessly. + Free Skybox Shader
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
2022.3.1f1
兼容
兼容
兼容
其他兼容性信息

The asset will work fine in all render pipelines, but if you wish to try the shader that I made, be sure to be in URP (Universal Render Pipeline). (It can be easily transported to HDRP (High Definition Render Pipeline), but it was made originally in URP.)

描述

This asset has been discontinued. There are no future plans to update it, so I'm making it available for free. All info about the asset is available in the documentation provided.


(Not all content included in the marketing images are included in the package)


Introducing the Day-Night Cycle Toolkit, a versatile asset for creating captivating day-night cycles in your projects. Whether you're a beginner or an experienced developer, this toolkit is designed to be user-friendly and easy to implement.


With this asset, you can effortlessly set up a day-night cycle that seamlessly transitions between different times of the day. The intuitive interface ensures that understanding and using the toolkit is a breeze, even for those new to game development.

  • Standout Features:
    • Trigger events at specific times using Unity Events, adding interactivity to your scenes.
    • Full control over lighting parameters: directional light color, ambient color, and fog color.
    • Simple gradient controls for adjusting atmosphere and mood throughout the day.
    • Compatibility with all render pipelines, with an exclusive skybox shader for Universal Render Pipeline (URP) testing.
  • Day-Night Cycle Toolkit:
    • Dynamic day-night cycle functionality for realistic and visually appealing environments.
    • Intuitive setup for easy integration into your projects.
    • Customizable lighting effects to enhance immersion.
  • Detailed Documentation Package:
    • Step-by-step guidance on utilizing features and maximizing its potential.
    • Clear explanations of the Lighting Manager script's functionality.
    • Best practices and recommendations based on my own research and experimentation.
    • Resources and links for creating captivating skyboxes.

If you'd like to try what this asset is capable of I've made a little game for you to try. It won't let you try every parameter of the asset, but will give you a main idea of how it works and how to use it. (Note: This is not included in the package, this is merely an example of what can be achived with this asset) Link:

https://drive.google.com/drive/folders/1KzlFuc1Kjab6_oKsuR4uVcDiPMScBsgF?usp=sharing


技术细节
  • The Lighting Manager script, tagged with [ExecuteAlways], provides a straightforward implementation for a day-night cycle system.
  • The script references the DirectionalLight object, allowing you to rotate and adjust its color based on the time of day. It also provides options to control the rotation axis.
  • The script supports dynamic changes to ambient light and fog color based on the time of day, ensuring a visually coherent environment.
  • With customizable morning and afternoon intervals, you can seamlessly adjust light intensity, shadow strength, and other parameters to match the desired visual progression.
  • You can integrate custom skybox materials to enhance the sky appearance during different times of the day. The script includes the ability to modify a specific custom property of the skybox material.
  • The Events feature allows you to define time-specific events using the EventInfo class. You can set the event name, associated time, and UnityEvent to execute. The script manages event execution with a tolerance parameter to ensure accurate triggering.
  • The Lighting Manager script includes a ResetEvents function to reset events every day at a specific time.

Implement the Lighting Manager script in your Unity projects to achieve immersive and visually appealing day-night cycles, interactive events, and dynamic lighting effects. Customize the parameters to create the desired mood and atmosphere for your virtual worlds.

Day-Night System with Events and Custom Lighting

(4)
100 users have favourite this asset
(100)
FREE
156 views in the past week
4 个月前
PERFECT AND FREE!
I am just using this for my prototype right now to simply see a day and night cycle while I construct my game. And yes, a day and night cycle can be ...
许可证类型
文件大小
8.5 MB
最新版本
1.0
最新发布日期
2023年8月9日
原始 Unity 版本
2022.3.1
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR
Day-Night System with Events and Custom Lighting
FREE