I want to change the animation layer weight with code, what I am doing is that when the player enters a BoxCollider2D the player’s animation swaps with new animations, The problem is that I don’t know how to do that.
(For context I am making a top down 2D game not a 3D game.)