Unity Mobile C# Developer Course: Building to WebGL with touch

I have been following the Mobile developer course on GameDevTV.

I have a project based on the Asteroid Avoider project.

In Unity Editor touch works; I can click on the screen and the ship moves towards the mouse position.

However, when I build to WebGL it doesn’t work.
Clicking on buttons does work though.

Is there something that needs to be done in the build settings or is this something to do with the new input system in Unity?

Thanks
John

Update:

This morning I woke up and realised I’d been testing my build on a computer and hadn’t tried it online on Itch from my phone/tablet. Everything works from a device! :slightly_smiling_face:
It would still be nice to test with mouse clicks and/or allow people to play in a browser with mouse clicks though.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms