Modern 2D LightRays
Modern 2D LightRays

Getting Started

Go from an empty GameObject to a finished light-ray setup in a few minutes.

Unity 2021.3 → 6.7+URP 2DPixel ArtLight2D

1. Project setup

The asset is designed for the Universal Render Pipeline 2D Renderer. Create or use a URP project with a 2D Renderer Data asset assigned to the active URP pipeline.

Supported editors: Unity 2021.3 LTS through Unity 6.7+.

2. Create your first ray

Create the component.
Use Tools → Light Rays 2D → Create, or add Light Rays 2D to a GameObject.
Place the ray.
Move, rotate and scale the GameObject like any other scene object.
Choose a Quick Look.
Start with Soft Sunbeam, Warm Window, Moonlight, Volumetric or another preset.
Shape it.
In Emitter Shape, keep Manual Quad and open Edit Quad Vertices. Drag the four Scene View handles.
Set sorting.
Choose the Sorting Layer and Order that place the ray correctly relative to your sprites.

3. Optional additions

Matching Light2D

Enable Create Matching Light2D when the beam should also illuminate URP 2D lit sprites.

Dust

Enable Particles and choose Dust Motes for subtle atmosphere inside the ray.

4. Save a good setup

When the ray looks right, make the GameObject a prefab. Quick Looks are intended as starting points; your final values remain serialized normally in scenes and prefabs.

Scene View handles are constrained. They stop before the quad collapses or self-intersects, so aggressive trapezoids remain valid.