Line renderer not displaying correctly
Currently, I have a line renderer which connects 2 sprites together , however in game view they are not connected correctly. Moreover, in scene view with 2d selected the lines are displayed correctly.
I guess the problem is with the camera?
Any suggestions?
They are in canvas. Probably something to do with how your canvas scales and you handle your screen and world coordinates? Hard to tell without any code.
I solved it, it was due to the camera settings.
The pointer event data was not the same as Input.mousePosition .
Answer by umerPC · Mar 19, 2018 at 11:09 AM
I changed the camera settings and it seems to have fixed the problem.
I realised there was a problem with the actual mouse click which was passed in as pointer event data.
This led me to change the camera settings as the mouse click did not reflect the actual position on the screen.