hi
my code
float mouseX = Input.mousePosition.x;
float mouseY = Input.mousePosition.y;
float screenX = Screen.width;
float screenY = Screen.height;
if (mouseX < 0 || mouseX > screenX || mouseY < 0 || mouseY > screenY)
return;
Does not run on visual studio for the windows store export. Anybody know why?
What do you mean by “does not run”? What it is supposed to do?
When you mouse leaves the VS Studio unity3d screen I want it to stop my camera. Works on unity3d
It looks you’ll have to do it yourself. You have to connect handlers to PointerEntered and PointerExited events and set some global flag. You need to modify the exported VS solution to achieve this.
Any examples of this please?