Converting WebGL to Android

Hey guys,

I made a few games by watching unity tutorials but I cannot build them to android. I want to convert these games to android and upload on playstore. Can anybody help me?

P.s.: I also need to change controls from click mouse button to touch.

whats the problem that you cannot build? some error message in console?

usually regular left button clicks will work with touch (from first touch only) without changes,
but of course if you have keyboard or other mouse buttons, need to convert those…

to use touches

It gives these errors in the screenshot.

which unity version, pc or mac?
does it show more info if select the first error row?

I recall seeing this ages ago - I had to close the editor, sign out (in Hub), sign in again, open the editor again and then it worked. I took it as a random glitch and that’s all it might have been, but you could try that and see if it helps.

Edit: Another thing to try when something doesn’t seem to make sense / all else fails is close the editor, delete the Library folder, then in Hub select the platform you want from the dropdown so it will open on that platform, open the project and let the Library rebuild itself, then try to build again. Of course, do make sure you have a backup first, just in case for some reason you have saved part of your project into that folder - which you should never be doing since it’s temporary files, which you probably already know :slight_smile:

Problem solved when I deleted the editor and reinstalled.

1 Like

Hello! Does any one know how to change the editor from WebGl to Android?

Use the Editor Build Settings window. Google for the official docs.