Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Shadows from 2D lights

Learn how the Shadow Caster 2D component defines the shape and properties that a Light uses to determine its cast shadows.
Read time 1 minuteLast updated 24 days ago

In the Universal Render Pipeline (URP), add shadows from 2D lights or create a custom shadow.

Topic

Description

Add shadows from 2D lightsAdd a Shadow Caster 2D component to a GameObject, and change or merge shadows.
Create a custom 2D shadowCreate a custom 2D shadow using the
ShadowShape2DProvider
API.

Additional resources