I have two layers of animation and I'm trying to SMOOTHLY transition between these two layers when I click a button.
public void OnButtonClicked(){
animator.SetLayerWeight(layerIndex, 1f);
}
For some reasons I don't know, the animation is not smooth at all. It looks really bad when I click the button and the new animation that I'm setting its layer weight starts