day-night-cycle

Manage in-game time progression and directional light rotation in Unity.

71|11|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/nlelouche/Unity-SkillForge --skill day-night-cycle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: day-night-cycle
Source: https://github.com/nlelouche/Unity-SkillForge/tree/main/.agent/skills/02-gameplay/day-night-cycle
Command: npx skills add https://github.com/nlelouche/Unity-SkillForge --skill day-night-cycle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill manages the progression of time within a Unity scene, controlling the rotation of directional lights to simulate day and night cycles and triggering events at specific times.

Core Features & Use Cases

  • Time Tracking: Accurately tracks in-game time from 0 to 24 hours.
  • Light Rotation: Rotates a directional light to simulate the sun's position.
  • Event Triggers: Fires events for dawn, dusk, and other time-based occurrences.
  • Use Case: Implement a realistic day-night cycle in an open-world game to affect NPC behavior, environmental lighting, and gameplay mechanics.

Quick Start

Use the day-night-cycle skill to generate a time system with a 24-minute day cycle.

Frequently Asked Questions about day-night-cycle

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a dynamic day-night cycle in Unity?

To implement a dynamic day-night cycle in Unity, this Skill manages in-game time progression from 0 to 24 hours and rotates directional lights to simulate the sun's position accurately.

Can I trigger gameplay events at dawn and dusk in Unity?

Yes, you can trigger gameplay events at dawn and dusk in Unity. This Skill fires specific events during time-based phase transitions to affect NPC behavior and environmental mechanics.

Does this Unity day-night cycle work with any render pipeline?

Yes, this Unity day-night cycle works with any render pipeline. It requires Unity 6+ to accurately manage time tracking and directional light rotation across different rendering setups.

How do I set up a 24-minute day cycle in Unity?

You can set up a 24-minute day cycle in Unity by using this Skill to generate a customized time system. It handles the time progression logic and automatically updates the lighting.

What is the best way to rotate a directional light based on in-game time?

The best way to rotate a directional light based on in-game time is using this Skill, which directly links the 0 to 24-hour time tracking to the sun's position and rotation.