DayNight2D Getting Started
Install
Section titled “Install”- Place
DayNight2Din your project’sPluginsfolder. - Enable the plugin in Unreal.
- Restart the editor if Unreal asks.
Create Time Settings
Section titled “Create Time Settings”- Create a
DayNightTimeSettingsdata asset. - Configure
RealSecondsPerGameMinute. - Set the starting minute, hour, day, month, and year.
- Configure calendar length and day phase start hours.
Use The Time Subsystem
Section titled “Use The Time Subsystem”DayNight2D uses UDayNightTimeSubsystem as the global source of truth.
Blueprints can read:
- Current time and date.
- Weekday, month, season, year, day phase.
- Total minutes, hours, and days passed.
- Pause state through save/replication state.
Blueprints can control:
- Pause and resume.
- Time speed.
- Set time/date.
- Advance minutes, hours, and days.
- Skip to morning or a target hour.
First Blueprint Test
Section titled “First Blueprint Test”- In a Blueprint, get the world subsystem
DayNightTimeSubsystem. - Bind to
OnHourChanged. - Print
GetFormattedDateTime. - Call
SetTimeSpeedto accelerate the test. - Confirm output advances without per-frame Blueprint tick.