Platforms

Detect platform client-side

TIP

You can make your UI mobile compatable: Custom CSS phone compatability

GAME.PLATFORM.isMobile();       # bool client is on mobile
GAME.PLATFORM.isBrowser();      # bool client is on browsers
GAME.PLATFORM.isClient();       # bool client is on a client
1
2
3