Skip to content

Instantly share code, notes, and snippets.

@iyed-5
iyed-5 / Sun.cs
Created July 11, 2023 09:48 — forked from paulhayes/Sun.cs
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]