Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    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:
    38
    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:
    156
    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.