Search Unity

Animation and layers only 1 layer is showing up

Discussion in 'Animation' started by xeonheart, Nov 9, 2021.

  1. xeonheart

    xeonheart

    Joined:
    Jul 24, 2018
    Posts:
    219
    Hello,

    So i am new to the animation part of unity, I am making a 2d game, and I created a character using sprite sheets, which right now have the body working to talk down if joystick (its a mobile game), pressed down, the character body show is walking down... BUT, like the title stated, I have several layers:
    body layer
    shirt layer
    pants layer
    hair layer

    again, the body shows up, but the other layers are not showing up... not sure if its a layer problem or maybe its the sprite renderer...

    right now for the layers, I have all 4 set to:
    Mask: None
    Blending: Override
    Sync: False
    IK Pass: False

    I am not sure if MAYBE I should just do it in per object for each of the parts (Body, Hair, Shirt, Pants) and have an animator for each... i thought using the Animation Layer would take care of that... but also, on my C# code, if its 1 = blue, if its 2 = red, 3 = purple etc., how would I pass that in to change the sprite colors?

    screen shot attached
     

    Attached Files: