- Home /
Mouse Wrapping Near Edge of Play Space
I've made a simple block breaker game based on a tutorial. Originally the game was made in Unity 4.6 but it was eventually ported to Unity 5. Upon porting the game I started seeing a strange bug. In the game, a paddle follows the mouse around at the bottom of the screen. When the mouse hits the left edge of the play space, the paddle jumps to the middle of the play space. This only happens on the left edge of the play space.
Has anyone experienced anything like this? Is this actually a bug?
You can see the bug in action here. Additionally, you can view the code to my project on github here. The code that drives the paddle movement is located in the Paddle.cs file.
Your answer
Follow this Question
Related Questions
Trying to get mouse location in world while in scene, HandleUtility.GUIPointToWorldRay not helpful 2 Answers
Maximize on play issue, perhaps bug? 0 Answers
Unity capturing events in editor and not letting go 0 Answers
Get the Scene View Position Relative to Camera View Position on Mouse Click 1 Answer
Unity scene view is turning gray, but when camera is disabled turning back to normal 0 Answers