Free Unity scripts you can inspect before you download.

55 C# scripts and 13 game-system kits, MIT licensed, no signup. Every script shows the Inspector fields it adds, read straight from its source.

DayNightCycle.cs

C# Script ·2.6 KB ·Unity 2022.3+

Open page
Script DayNightCycle
Time
Time Of Day 12
Day Length Minutes 10
Is Paused
Sun
Directional Light None (Light)
Sun Color None (Gradient)
Max Intensity 1.2
Ambient
Ambient Color None (Gradient)
Events
On Dawn ()
List is Empty
On Noon ()
List is Empty
On Dusk ()
List is Empty
On Midnight ()
List is Empty

Fields, defaults and ranges are parsed live from each script's source.

Browse by category

Every script lives in one folder. Open a folder for its scripts, what they need, and the kits built on them.

Shaders, running live

Single-file URP shaders for Unity 6. Each material below is its shader running in your browser; open one to tune it in an Inspector before you download it.

Moving a project to Unity 6?

Unity 6.0 LTS support ends on 16 Oct 2026. Paste a script into the upgrade checker and see every API Unity 6.0 to 6.6 made obsolete, removed or changed, with the fix for the version you are moving to. 17 changes covered, each linked to Unity's own documentation.

Browse the library

Single scripts you drop onto a GameObject, kits that bundle several into a working system, and shaders for URP.

  • 2D Player Controller

    Complete 2D character controller with smooth movement, variable-height jumping, and coyote time.

    PlayerController2D.cs Movement · Unity 6000.0+
  • Smooth Camera Follow 2D

    Smooth camera follow with offset, dead zone, and look-ahead for 2D games.

    CameraFollow2D.cs Movement · Unity 2022.3+
  • 3D Player Controller

    First/third person character controller with smooth movement, jumping, and slope handling using CharacterController.

    PlayerController3D.cs Movement · Unity 2022.3+
  • Health System

    Reusable health component with damage, healing, invincibility frames, and events.

    HealthSystem.cs Health & Combat · Unity 2022.3+
  • Generic Singleton

    Thread-safe, persistent singleton base class for managers like AudioManager, GameManager, etc.

    Singleton.cs Utilities · Unity 2022.3+
  • Audio Manager

    Complete audio manager with music crossfade, SFX pooling, volume control, and persistence.

    AudioManager.cs Audio · Unity 2022.3+
  • Object Pool

    Generic object pooling system to reduce garbage collection. Perfect for bullets, particles, and enemies.

    ObjectPool.cs Utilities · Unity 2022.3+
  • Screen Fader

    Simple screen fade-in/fade-out with configurable color and duration. Great for scene transitions.

    ScreenFader.cs UI · Unity 2022.3+

Editor tools by the maker of this site

Two paid Unity Editor extensions, sold on the Unity Asset Store. Everything else on Scripts For Unity stays free.

  • FullView - Fullscreen Scene & Game View

    Press a key and any Editor window goes truly fullscreen: no title bar, no taskbar, no flicker. Put the Game View and Scene View on separate monitors and press Escape to exit them all.

    • F7 fullscreens the focused window
    • Game and Scene View on separate monitors
    • Windows, macOS and Linux
    View FullView on the Asset Store
  • Easy Capture - Screenshot & Game Recording

    Screenshots, MP4 or WebM video and GIFs from the Scene or Game View without leaving Unity, with size presets for Steam, the app stores and social media. Editor only, so nothing ships in your build.

    • Screenshots up to 8× resolution
    • MP4, WebM and GIF recording
    • Steam, store and social presets
    View Easy Capture on the Asset Store

Recently added

Every script, kit and post, dated, newest first.

Library log, newest first