I have done something stupid. Since i cant bake my navmesh anymore. I do not know at all what i could have done wrong to make it unable to bake. I tried with a new project and it worked fine. But i have done something to make it unable to bake in my current project.
Any tips on where i should look at. Could it be something with layers. Because that is the only thing that come into mind right now. I deleted all the gameobjects and tried again with a fresh plane. But i got nothing when i baked.