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

[SOLVED} Shadow Caster 2d not working? [2019.3]

Discussion in '2D Experimental Preview' started by Rob_Koda, Apr 12, 2020.

  1. Rob_Koda

    Rob_Koda

    Joined:
    May 2, 2017
    Posts:
    7
    Howdy

    I'm playing with the new 2D lights and URP in general. I tried to create shadows for some of my objects, but adding the Shadow Caster 2D component doesn't seem to do anything.



    Event after updating the shape of the caster, and moving the light source around, I still don't have anything.

    There's basically 2 lights, a blue light on the left of the tree, and one global orange one.
    The background is on a separate rendering layer, but that's it. Nothing fancy.
     
  2. Rob_Koda

    Rob_Koda

    Joined:
    May 2, 2017
    Posts:
    7
    Solved: actually each light need to have it's shadow intensity set.
     
  3. Sam_Ooi

    Sam_Ooi

    Unity Technologies

    Joined:
    Mar 5, 2018
    Posts:
    61
    Hi Robin, thanks for coming back to let us know how your fixed it. We'll add to the documentation to make sure that step is clearer in case it is missed.
     
  4. RamjobFlux

    RamjobFlux

    Joined:
    May 12, 2018
    Posts:
    1
    thanks for pointing out to these 2D shadows i didnt even know they existed
     
  5. FredMastro

    FredMastro

    Joined:
    May 11, 2014
    Posts:
    6
    That helped me, thank you.
     
  6. Dirly

    Dirly

    Joined:
    Mar 24, 2013
    Posts:
    19
    I cant even move the nodes it just resets them to the center!
     
  7. AnthonyAustwick

    AnthonyAustwick

    Joined:
    Jan 16, 2023
    Posts:
    1
    I believe the documentation on this could still be a little clearer. There's a single fraction of a sentence mentioning "that a Light uses to determine its cast shadows", but this doesn't make it sound like you need to change any options in order to create this effect.