Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Shadow caster works incorrectly on character with rig.

Discussion in '2D Experimental Preview' started by Ragueel, Oct 2, 2020.

  1. Ragueel


    Jun 2, 2018
    I created a character and rigged it. I then added the shadow caster component and it uses incorrect silhouette. Also, it doesn't follow animation changes. I dug into the code of shadow caster and found that it uses something like a mesh and from that casts shadows. Can I access the current mesh of 2d sprite with rigging and use it as a shadow caster?
  2. MrPaparoz


    Apr 14, 2018
    IIRC, no. Currently shadowcaster uses editable colliders like normal 2D colliders which doesn't follow sprites on shapes.

    I don't know if you create a mesh feed it into shadowcaster tho, but I don't have my hopes high there.