Gravity and character movement suddenly gone.

So I was working on a 2D plat-former project yesterday and I I made 2 changes to it. the first was adding the ability to crouch to the game and the third was I wanted to try an different collider. I updated the 2d collider from polygon to square to compare the two and suddenly the character would no longer move. This includes gravity not applying to the character for some reason.
I have removed the rigidbody2d and re-added it back in several times,
taken out the 2dbox collider and swapped back the polygon collider,
commented out my code for the player controller thinking something unknown error in the code may be effecting the character and the character still just floats in midair like gravity isn’t a thing,
checked the settings on the 2d collider and the gravity scale is 5 and mass 1
updated unity from 4.6 something to version 5 - this let gravity work again but then the character started to slowly rise up int he air after dropping to the ground.
after searching online for the new problem it turns out the setting on the animator apply root motion was selcted and unchecking this caused the character to no longer float int he air. however now the character is floating again and gravity no longer affects him and he still doesnt move. animations for walking and running work but GetComponent().velocity = new Vector2 (movementSpeed, GetComponent().velocity.y); doesn’t move the character. Also I’ve checked to make sure movement speed is still defined as 5.

Any ideas? My GoogleFu is not coming up with anybody else with similar issues previously and my own trouble shooting skills seem to be exausted.

So an update. whatever is causing this behavior is apparently part of the animator component. Any recommendations before I go and redo all the animations states?

redid the animator controller but the problem came back.

Your animations are probably “trying” to control the movement of the character. Unity - Manual: Animator component “Apply Root Motion – Should we control the character’s position and rotation from the animation itself or from script.”

So oddly enough having apply root motion checked caused gravity to sort of work. the characters would float down to the ground and then bounce up repeatedly. still couldn’t walk or jump but at least gravity worked kinda the way it was supposed to. since this didn’t fix anything I removed the check on this box in the animator.

One thing I had notice previously is that the only time the character would move is when the character was placed on the ground and turned left and then crouched thus activating one of the new animations I had added. he would jump forward some distance when he did this and then move back to where he was when you stopped crouching. I didn’t understand why, and still don’t for that matter, but deleting this animation and recreating it seemed to fix the problem. maybe something to do with this animation became corrupted I’m guessing? well anyways problem solved even if I don’t fully understand why.