You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, just downloaded this and put it in my project, it seems to be exactly what I'm looking for but I can't for the life of me get the click & drag to work at all.
I have no touch screen so I can't test that.
The issue seems to be with the line: cam.transform.position -= (cam.ScreenToWorldPoint(deltaPosition) - cam.ScreenToWorldPoint(Vector2.zero));
which only ever returns the camera's default position for me, and I can't seem to get it working.
What exactly am I doing wrong here?
The text was updated successfully, but these errors were encountered:
Hi, just downloaded this and put it in my project, it seems to be exactly what I'm looking for but I can't for the life of me get the click & drag to work at all.
I have no touch screen so I can't test that.
The issue seems to be with the line:
cam.transform.position -= (cam.ScreenToWorldPoint(deltaPosition) - cam.ScreenToWorldPoint(Vector2.zero));
which only ever returns the camera's default position for me, and I can't seem to get it working.
What exactly am I doing wrong here?
The text was updated successfully, but these errors were encountered: