A Unity Script that automatically incorporates a tiled (9 Slice Game Object) into the URP lighting model by adjusting the size of the object's shadow.
Place This script on an object with Sprite Renderer Draw Mode selected as Tiled
.
Unity Script which incorporates a tiled (9 Slice Game Object) into the URP lighting model
C#