Skip to content

Add documentation description about "visionOS" in OS::get_name #108183

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OzelotVanilla
Copy link
Contributor

Mentioned in another PR of mine #108034 (comment), copied and rephased comment from there.

Found the doc doc/classes/OS.xml, lacks the "visionOS" one.

godot/doc/classes/OS.xml

Lines 372 to 383 in 9a39760

<method name="get_name" qualifiers="const">
<return type="String" />
<description>
Returns the name of the host platform.
- On Windows, this is [code]"Windows"[/code].
- On macOS, this is [code]"macOS"[/code].
- On Linux-based operating systems, this is [code]"Linux"[/code].
- On BSD-based operating systems, this is [code]"FreeBSD"[/code], [code]"NetBSD"[/code], [code]"OpenBSD"[/code], or [code]"BSD"[/code] as a fallback.
- On Android, this is [code]"Android"[/code].
- On iOS, this is [code]"iOS"[/code].
- On Web, this is [code]"Web"[/code].
[b]Note:[/b] Custom builds of the engine may support additional platforms, such as consoles, possibly returning other names.

which is implemented already:
String OS_VisionOS::get_name() const {
return "visionOS";
}

@OzelotVanilla OzelotVanilla requested a review from a team as a code owner July 2, 2025 02:18
@AThousandShips AThousandShips added this to the 4.5 milestone Jul 2, 2025
@fire fire changed the title doc - Add description about "visionOS" in OS::get_name Add documentation description about "visionOS" in OS::get_name Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants