Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Shadow caster works incorrectly on character with rig.

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

  1. Ragueel

    Ragueel

    Joined:
    Jun 2, 2018
    Posts:
    39
    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

    MrPaparoz

    Joined:
    Apr 14, 2018
    Posts:
    157
    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.