Search Unity

Addressing avatar masks in java

Discussion in 'Animation' started by Piebu, Feb 24, 2014.

  1. Piebu

    Piebu

    Joined:
    Jan 26, 2014
    Posts:
    2
    Hello everybody!

    I'm having quite a lot of trouble with Animator Controller Layers. I've created another Layer in the top left corner next to Base Layer and assigned an avatar mask to it, but how do I actually get the animation played if a bool has been set to true in java?

    To be specific, I want to change the bool to true when I press E, so it plays an animation and then it should check what the current state of the second layer is to switch back to false, but I don't know the exact syntax in java. The documentation wasn't helpful to a beginner like me.

    Thank you kindly!