Search Unity

Question Possible for 3D lighting to affect 2D bones?

Discussion in 'Animation' started by RealMcCoyGames, Mar 27, 2021.

  1. RealMcCoyGames

    RealMcCoyGames

    Joined:
    Jul 23, 2018
    Posts:
    65
    Is it possible?

    So colored lights, shadows, stuff like that having an affect on an animated 2D bone rig in a 3D game?

    I've tried adding the Shadow Caster 2D component but that doesn't seem to work with bones.

    Would this be possible with a shader or is it just impossible?

    Also what is this parent game object actually called in unity, the one that holds all the bones and parts of the PSB together? Would help with my google searches.

    unity-bones.png
     
  2. RealMcCoyGames

    RealMcCoyGames

    Joined:
    Jul 23, 2018
    Posts:
    65
    OK I've got the sprites casting shadows but running into some issues. But the sprite itself has gone purple, I think it's because I am using URP possibly.

    This is the tutorial I am using:



    And he has another one I'm going to try tomorrow here: