Jump height affected editor window size

It’s come to my attention recently that my main character’s jump height is drastically changed based on the screen size. What’s strange to me is that no other components, like movement or dash speed/distance, seem to be affected by it. Currently, the character jumps much higher when the editor is larger, and barely hops off the ground when the window is shrunken.

I’ve tried with both “player.AddForce(jumpForce, ForceMode.Impulse)” and “player.velocity = jumpForce”, as well as putting the calculations in both Update() and FixedUpdate(), but none of these combinations seems to fix it.

How can I fix this to get a consistent jump height regardless of screen/window size?

I am not a 100% sure about this, but you could try changing it to player.AddForce(jumpForce, ForceMode.Impulse); (or alternatively if it’s a 2d game make it ForceMode2D.Impulse)