ShadowCaster2D
class in UnityEngine.Rendering.Universal · Unity.RenderPipelines.Universal.2D.Runtime · inherits from MonoBehaviour
7 of 14 of Unity's members
In Tassix
Casts 2D lights' shadows from an outline: its shape path, or its renderer's bounds (Unity's editor takes a sprite's own outline). It shadows renderers on its target sorting layers, and its own renderer only with self shadows. Shadows are hard-edged (softness is kept as a setting).
Properties 7
float alphaCutoff { get; set; }ShadowCastingOptions castingOption { get; set; }bool castsShadows { get; set; }bool selfShadows { get; set; }Vector3[]? shapePath { get; }float trimEdge { get; set; }bool useRendererSilhouette { get; set; }Not in Tassix yet 7
OnAfterDeserialize OnBeforeSerialize OnDisable OnEnable Update boundingSphere mesh