The Black Friday Creator Sale is here! Save up to 70% on selected products now through December 3.

Date, Time, and Climate Systems

Acinonyx - Code Plugins - Sep 20, 2023

Date, Time, and Climate System

  • Supported Platforms
  • Supported Engine Versions
    5.1 - 5.3
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.

The sun and moon positions are calculated using reference astronomical equations, taking into account the latitude and longitude of the observer, as well as the time of day and year. This means that you can accurately represent the position of the celestial bodies in the sky.


In addition to the celestial bodies, the plugin also includes date and time handling capabilities. You can specify the date and time of day for your world, and the plugin will automatically calculate the positions of the sun and moon accordingly. This allows you to create realistic planetary schedules, including day/night cycles.


The plugin is based around a date and time system, allowing you to set specific dates and times for your world, or alternatively, you can let it run as a real-time game clock. You can also switch between the two on the fly.


By default, this plugin creates a global GameInstanceSubsystem that most parts of the engine can reference. Climate Systems will automatically pick up on this subsystem if the GameInstance or GameState do not implement the IDateTimeSystemInterface interface.


A demo of the motion of the sun is demonstrated in this YouTube video.

An example of some use cases can be found in this video.



Update 1.3:

Corrected GetMoonRotation.

Sky Material now shades the moon in relation to its phase.


Update 1.4:

Fixed an error where the yearbook didn't work in standalone applications.

Added support for HDRI's of the night sky in the sky material.

Added texture support for spherical moon textures.

Technical Details

Features: (Please include a full, comprehensive list of the features of the product)

  • Customisable date and time system (Year Length, Number of Months, Length of Day, etc)
  • Plausible sun and moon positions
  • Basic date and time calculations
  • Highly approximated local climate system
  • Live or gameplay date progression
  • Callbacks for Sunrise and Sunset


Code Modules:

  •  DateTimeSystem (Runtime)


Number of Blueprints: 0

Number of C++ Classes: 7 (8 including non-exported Settings class)

Network Replicated: No

Supported Development Platforms: Win64, Linux

Supported Target Build Platforms: Win64, Linux

Documentation: acinonyx.nz/documentation-date-climate-root

Example Project: https://drive.google.com/file/d/1ZYB_Vu32V5tyY9LYnw8d3FSxjkgcEy5n/view?usp=sharing

Important/Additional Notes: Also includes a sky material that supports a moon.