initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled

This commit is contained in:
2025-09-16 20:46:46 -04:00
commit 9d30169a8d
13378 changed files with 7050105 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
/**************************************************************************/
/* export.cpp */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* https://godotengine.org */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#include "export.h"
#include "export_plugin.h"
#include "editor/export/editor_export.h"
void register_visionos_exporter_types() {
GDREGISTER_VIRTUAL_CLASS(EditorExportPlatformVisionOS);
}
void register_visionos_exporter() {
Ref<EditorExportPlatformVisionOS> platform;
platform.instantiate();
EditorExport::get_singleton()->add_export_platform(platform);
}

View File

@@ -0,0 +1,34 @@
/**************************************************************************/
/* export.h */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* https://godotengine.org */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
void register_visionos_exporter_types();
void register_visionos_exporter();

View File

@@ -0,0 +1,56 @@
/**************************************************************************/
/* export_plugin.cpp */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* https://godotengine.org */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#include "export_plugin.h"
#include "logo_svg.gen.h"
#include "run_icon_svg.gen.h"
Vector<String> EditorExportPlatformVisionOS::device_types({ "realityDevice" });
EditorExportPlatformVisionOS::EditorExportPlatformVisionOS() :
EditorExportPlatformAppleEmbedded(_visionos_logo_svg, _visionos_run_icon_svg) {
#ifdef MACOS_ENABLED
_start_remote_device_poller_thread();
#endif
}
EditorExportPlatformVisionOS::~EditorExportPlatformVisionOS() {
}
void EditorExportPlatformVisionOS::get_export_options(List<ExportOption> *r_options) const {
EditorExportPlatformAppleEmbedded::get_export_options(r_options);
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/min_visionos_version"), get_minimum_deployment_target()));
}
Vector<EditorExportPlatformAppleEmbedded::IconInfo> EditorExportPlatformVisionOS::get_icon_infos() const {
return Vector<EditorExportPlatformAppleEmbedded::IconInfo>();
}

View File

@@ -0,0 +1,61 @@
/**************************************************************************/
/* export_plugin.h */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* https://godotengine.org */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#pragma once
#include "editor/export/editor_export_platform_apple_embedded.h"
class EditorExportPlatformVisionOS : public EditorExportPlatformAppleEmbedded {
GDCLASS(EditorExportPlatformVisionOS, EditorExportPlatformAppleEmbedded);
static Vector<String> device_types;
virtual String get_platform_name() const override { return "visionos"; }
virtual String get_sdk_name() const override { return "xros"; }
virtual const Vector<String> get_device_types() const override { return device_types; }
virtual String get_minimum_deployment_target() const override { return "2.0"; }
virtual Vector<EditorExportPlatformAppleEmbedded::IconInfo> get_icon_infos() const override;
virtual void get_export_options(List<ExportOption> *r_options) const override;
public:
virtual String get_name() const override { return "visionOS"; }
virtual String get_os_name() const override { return "visionOS"; }
virtual void get_platform_features(List<String> *r_features) const override {
EditorExportPlatformAppleEmbedded::get_platform_features(r_features);
r_features->push_back("visionos");
}
EditorExportPlatformVisionOS();
~EditorExportPlatformVisionOS();
};

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon icon-tabler icons-tabler-outline icon-tabler-device-vision-pro"><path fill="#afafaf" stroke="none" d="m 2.3158622,19.036192 h 0.9375 l 1.5,-4.179688 H 3.8392997 L 2.811956,18.176817 h -0.042969 l -1.03125,-3.320313 H 0.81195599 Z m 3.375,-4.867188 c 0.2929688,0 0.5234375,-0.234375 0.5234375,-0.519531 0,-0.285156 -0.2304687,-0.515625 -0.5234375,-0.515625 -0.2851562,0 -0.5195312,0.230469 -0.5195312,0.515625 0,0.285156 0.234375,0.519531 0.5195312,0.519531 z m -0.4375,4.867188 h 0.875 v -4.179688 h -0.875 z m 3.2929688,0.08203 c 0.9960937,0 1.726562,-0.527344 1.726562,-1.300781 v -0.0039 c 0,-0.605469 -0.3554683,-0.945313 -1.1874995,-1.136719 L 8.4096122,16.520567 C 7.9564872,16.415098 7.7767997,16.251036 7.7767997,15.993223 v -0.0039 c 0,-0.332031 0.3046875,-0.550781 0.7578125,-0.550781 0.4726563,0 0.7617188,0.234375 0.8242188,0.558593 v 0.01953 h 0.824219 v -0.02734 c -0.05859,-0.695313 -0.6601565,-1.214844 -1.6445315,-1.214844 -0.9648438,0 -1.6328125,0.515625 -1.6328125,1.257813 v 0.0039 c 0,0.613281 0.3828125,0.984375 1.1757812,1.167969 l 0.6757813,0.152343 c 0.4609375,0.109375 0.6367187,0.273438 0.6367187,0.535157 v 0.0039 c 0,0.335937 -0.3320312,0.554687 -0.8359375,0.554687 -0.5078125,0 -0.8007812,-0.214843 -0.890625,-0.5625 l -0.00781,-0.01953 H 6.796331 v 0.01953 c 0.082031,0.734375 0.7109375,1.230469 1.75,1.230469 z m 2.832031,-4.949219 c 0.292969,0 0.523438,-0.234375 0.523438,-0.519531 0,-0.285156 -0.230469,-0.515625 -0.523438,-0.515625 -0.285156,0 -0.519531,0.230469 -0.519531,0.515625 0,0.285156 0.234375,0.519531 0.519531,0.519531 z m -0.4375,4.867188 h 0.875 v -4.179688 h -0.875 z m 3.53125,0.08203 c 1.214844,0 1.988281,-0.824219 1.988281,-2.171875 v -0.0078 c 0,-1.34375 -0.78125,-2.164063 -1.992187,-2.164063 -1.210938,0 -1.988281,0.824219 -1.988281,2.164063 v 0.0078 c 0,1.347656 0.769531,2.171875 1.992187,2.171875 z m 0,-0.722656 c -0.6875,0 -1.101562,-0.53125 -1.101562,-1.449219 v -0.0078 c 0,-0.910157 0.417968,-1.441407 1.097656,-1.441407 0.683594,0 1.101562,0.53125 1.101562,1.441407 v 0.0078 c 0,0.914063 -0.414062,1.449219 -1.097656,1.449219 z m 2.628906,0.640625 h 0.875 v -2.445313 c 0,-0.648437 0.378907,-1.074218 0.976563,-1.074218 0.597656,0 0.886719,0.34375 0.886719,1 v 2.519531 h 0.871093 v -2.707031 c 0,-0.980469 -0.523437,-1.554688 -1.449218,-1.554688 -0.621094,0 -1.035157,0.277344 -1.246094,0.714844 h -0.03906 v -0.632813 h -0.875 z m 6.949219,0.117187 c 1.628906,0 2.640625,-1.136718 2.640625,-2.933593 v -0.0078 c 0,-1.800781 -1.015625,-2.929687 -2.640625,-2.929687 -1.625,0 -2.648437,1.128906 -2.648437,2.929687 v 0.0078 c 0,1.800781 1.011718,2.933593 2.648437,2.933593 z m 0,-0.796875 c -1.066406,0 -1.726562,-0.832031 -1.726562,-2.136718 v -0.0078 c 0,-1.308594 0.671875,-2.132812 1.726562,-2.132812 1.054688,0 1.71875,0.824218 1.71875,2.132812 v 0.0078 c 0,1.300781 -0.660156,2.136718 -1.71875,2.136718 z m 5.386719,0.796875 c 1.332031,0 2.160156,-0.667968 2.160156,-1.722656 v -0.0039 c 0,-0.855469 -0.496094,-1.332031 -1.667969,-1.582031 l -0.613281,-0.128907 c -0.710937,-0.152343 -1.019531,-0.414062 -1.019531,-0.832031 v -0.0039 c 0,-0.5 0.457031,-0.816406 1.132812,-0.820313 0.667969,0 1.109375,0.320313 1.183594,0.808594 l 0.0078,0.05078 h 0.871093 l -0.0039,-0.05859 c -0.0625,-0.917969 -0.855469,-1.578125 -2.050781,-1.578125 -1.195313,0 -2.046875,0.667968 -2.050781,1.644531 v 0.0039 c 0,0.832031 0.515625,1.355469 1.640625,1.59375 l 0.613281,0.128906 c 0.742187,0.160157 1.046875,0.417969 1.046875,0.855469 v 0.0039 c 0,0.515625 -0.488281,0.863282 -1.214844,0.863282 -0.746094,0 -1.269531,-0.324219 -1.332031,-0.832032 l -0.0078,-0.04297 h -0.878906 l 0.0039,0.05078 c 0.07422,0.976562 0.902344,1.601562 2.179688,1.601562 z" aria-label="visionOS" font-family="SF Hello" font-size="8" font-weight="500" style="-inkscape-font-specification:&quot;SF Hello, Medium&quot;"/></svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#fff" d="M.462 11.653H1.72V6.296H.462Zm.627-6.059a.687.687 0 0 0 .702-.682.688.688 0 0 0-.702-.687.687.687 0 0 0-.698.687c0 .38.309.682.698.682zM5.91 4.24c-2.127 0-3.461 1.45-3.461 3.77 0 2.32 1.333 3.765 3.461 3.765 2.123 0 3.457-1.445 3.457-3.765 0-2.32-1.334-3.77-3.457-3.77zm0 1.112c1.299 0 2.128 1.03 2.128 2.658 0 1.622-.829 2.653-2.128 2.653-1.304 0-2.127-1.03-2.127-2.653 0-1.627.823-2.658 2.127-2.658zm3.988 4.25c.055 1.344 1.157 2.173 2.835 2.173 1.764 0 2.876-.87 2.876-2.254 0-1.086-.627-1.698-2.108-2.037l-.839-.192c-.895-.212-1.263-.495-1.263-.98 0-.607.556-1.01 1.38-1.01.834 0 1.405.408 1.465 1.09h1.244c-.03-1.283-1.092-2.152-2.699-2.152-1.587 0-2.714.874-2.714 2.168 0 1.041.637 1.688 1.981 1.997l.945.222c.92.217 1.294.52 1.294 1.046 0 .606-.611 1.041-1.49 1.041-.89 0-1.562-.44-1.643-1.112H9.899Z"/></svg>

After

Width:  |  Height:  |  Size: 901 B