The mass still 1.0f after this line, in the debugger as well as in the inspector (and the apparent behaviour of the rigidbody). No warning messages or anything. It just doesn’t change. Intended?
From what I know, rigidbody2D and gameObject.rigidbody2D are references to the same thing. So no, unfortunately that is not the problem (I tried it to be sure btw). Weird thing is that this has worked through the whole alpha and beta, but now suddenly it does not.
I’ve run into the same issue. I’m logging the value in the console even, just in case it was some Editor glitch and not displaying. Unfortunately I can’t seem to alter the value no matter what I do, other than manually setting it in the editor. This is a big issue for a game I’m making, as the mass needs to be dynamically altered in script. Hopefully this is just a minor bug and it gets fixed in the next patch.