Do NOT swap your minX and maxX values in the inspector

My values were correct in the script, but somehow I had swapped them in the Inspector.

That led to a VERY confusing error where if I had the mouse to the right of the game window, the paddle got placed on the extreme left. If I had the mouse in the game window or to the left of it, the paddle got moved to the extreme right.

So DON’T swap the values in the Inspector.

Which leads me to my question:
How can you “reset” the values in the inspector, since it did not use the values set under configuration parameters in the script anymore?

If you right click on any component or scripts and click reset they will return to default values.

1 Like

Thank you! That worked like a charm.
I tried resetting the values, didn’t think about resetting the whole script component.

Privacy & Terms