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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

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!