How to find out which mobile platform a build is running on? Defold engine HTML5 build
- User
How to find out which mobile platform a build is running on? Defold engine HTML5 build
- Assistant
In Defold, the HTML5 build is a web-based platform, and when you build your game for HTML5, it's designed to run in a web browser. To determine the underlying mobile platform (if the web game is being accessed from a mobile device), you typically need to use JavaScript and check the User-Agent string, which provides information about the operating system and browser.