API reference
API reference
Select your platform
No SDKs available
No versions available

CanvasShadowProjector Class

Extends MonoBehaviour
Projects a shadow object to the floor below a canvas panel.
Automatically positions the shadow on the floor plane directly below the target, with a slight offset to avoid z-fighting.
Usage:
  1. Attach this script to your shadow GameObject
  2. Assign the canvas panel as the target (or leave empty to use parent)
  3. Set floor Y level and offset
  4. Shadow will automatically follow the panel's horizontal position
Did you find this page helpful?