How to get the type of device?

Godot Version

4.3-stable

Question

Is there a way to find out the type of device (PC/Phone) on which the program is running?

You could use OS.has_feature(flag) to check for flags like "android", "mobile" or such. Keep in mind that these are set at build time, rather than being checked at runtime.

2 Likes

Use OS.get_name()

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.