When I play the game in the editor, all of the input works perfectly fine. For reference, I'm using code like this:
if(Input.GetMouseButtonDown(0))
mouseDown = true;
else if(Input.GetMouseButtonUp(0))
mouseDown = false;
Which then triggers other code in the Update function that manipulates the player object's transform. When I try to move with the mouse on the WebGL build that I've hosted on our server, the player doesn't move. Mouse input works in every other scene (clicking buttons, mostly, but I also have custom pathing code in another scene that detects mouse clicks and then paths to the location clicked) except this one. Any ideas as to what could be happening?
↧