-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: OS.get_version to get OS version string #31895
Comments
What would |
@bojidar-bg |
That's not really sufficient as
|
On Linux, I would expect |
Some linux distros dont even have a version, like
which is not really helpful to get from higher level API in gdscript.. and the kernel version is too much low level identifier |
On Windows, Mac, IOS and android it can just return the version number, for windows for example: if it is
You can then compare the value and do the appropriate actions depending on the OS version. OSX:
IOS:
Android:
The returned value should be the float value of the version so that you can easily compare it. EDIT: The above version numbers are actual representations of the |
Nope. It would be better to have it similar |
But, what is the point of returning the full string of the version? What is the use case of it? If for example, you want to compare it and do some action depending on the version number, you'd have to remove the text and possible do more unnecessary actions. Maybe, return an array for all platforms with |
Hi, Is there any update on this effort? |
Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine. The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker. If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance! |
Godot version:
3.1.1
Issue description:
There should be a way to get platform specific
OS
version...Proposed API:
There seem to be no workaround for
iOS
devices (without creating a native module) as to my knowledge its only possible to access this information programmatically viaSwift
/Objective C
..The text was updated successfully, but these errors were encountered: