- Home /
Can we enable scripts using animation on Animator secondary Layers ? where base layer has animation from maya ?
I have an Gameobject 'A' with an Animator Component. this A gameobject has 2 child Gameobjects B & C. 'A' has a generic animation made using maya imported to unity, this animation contains movement of B and C, lets call this animation as 'anim'
in the AnimatorController of A this animation 'anim' is present on the baseLayer
now I make another animation for this setup in unity, this animation is not effecting Movement of B or C but instead is only enabling or disabling another component script 'ScrA.cs' which is applied on 'A'
this new animation is applied on another layer in the Animator set to additive
Issue-
on running - the base layer animation is running and is showing correct animator state in the Animator Window , also the 2nd layer is showing correct animation state but the script is not enabling /disabling ?
Is it possible to do this using my setup ??
Your answer
Follow this Question
Related Questions
Dynamically add / remove layers from animation controller through script 0 Answers
Display additional animation on top of other animations 0 Answers
Animator's animation doesn't stop immediately. 1 Answer
Bool in animator is not changing state 0 Answers
[SOLVED]How to set the animator's controller in an editor script? 0 Answers