Get system name - Runtime

Is it possible to get the name of the system (Web, Android, Windows, Linux, MacOS and others) while the game is running?

When using the Sys.systemName() function, I get the message:
Accessing this field requires a system platform (php, neko, cpp, etc.)

Try kha.System.systemId. I’m not sure if that does return something on all platforms (browser etc.) but it might help you.

Also, Kha has some system defines with which you could implement a function that is similar to systemName().

There might be better solutions, I don’t know.

1 Like

Thanks. I will try different options