Skip to content

Instantly share code, notes, and snippets.

@paulhayes
paulhayes / Sun.cs
Last active July 3, 2024 10:34
Rotates a Unity directional light based on location and time. Includes time scale, and frame stepping for continuous use.
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Entropedia
{
[RequireComponent(typeof(Light))]
[ExecuteInEditMode]