• RuntimesUnity
  • Inquiry regarding Light2D object casting shadow

Hello, I'm conducting R&D on Spine shadow casting.
I'm trying to create a Spine shadow using a Light2D object, but it doesn't appear even when I turn on Cast Shadows.
Is it possible that the two are incompatible??

I am using Spine 4.2 and have applied Spine's Material as Universal Render Pipeline/2d/Spine/Skeleton-Lit to the URP 2D environment.

If it is compatible, I would appreciate it if you could explain how to use it.

Related Discussions
...

@thcha Please note that the URP 2D Shadow casting system works completely different than the normal 3D shadow casting pipeline. Did you get a non-Spine GameObject to cast proper 2D shadows in the same scene?

In general you need a ShadowCaster2D component, see the documentation here:
https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@17.0/manual/2DShadows.html
Note that ShadowCaster2D is not designed for animated objects which change shape every frame. You can however set the Shadow Caster 2D Casting Source to Shape Editor and define the shape for your skeleton.

  • thcha оценил это.