Skip to content

Instantly share code, notes, and snippets.

@paulhayes
paulhayes / Sun.cs
Last active December 11, 2024 03:02
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]