Remember me
You are here: HomeForumCyberix3D ForumGeneral DiscussionCan't Search Games???
Welcome, Guest
Username: Password: Remember me

TOPIC: How do I detect if the game is playing on mobile?

How do I detect if the game is playing on mobile? 3 months 3 weeks ago #3276

  • JustGames
  • JustGames's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 4
Hi. I'm creating a game for both PC and Mobile and I want that the game hides automatically if it's running on PC. How can I do that?
Last Edit: 3 months 3 weeks ago by JustGames.
The administrator has disabled public write access.

How do I detect if the game is playing on mobile? 3 months 3 weeks ago #3277

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 699
  • Thank you received: 693
Hi JustGames,

There is not a built-in way to detect if the game is playing on mobile, but you can simply add a variable called is_mobile and set its value to 0 or 1 before exporting your game to Windows or Mobile.
Then you can hide and show different elements based on this variable so you would have a mobile and desktop version.

Regards,
Cyberix3D Team
The administrator has disabled public write access.

How do I detect if the game is playing on mobile? 3 months 3 weeks ago #3278

  • JustGames
  • JustGames's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 4
Oh, Thank you Cyberix3d!
The administrator has disabled public write access.
Time to create page: 0.094 seconds