Godot for .NET Android Export

huangapple go评论160阅读模式
英文:

Godot for .NET Android Export

问题

我正在尝试学习如何在使用C#作为脚本语言的同时使用Godot,我已经跟随了几个教程,并且迄今为止已成功将GDScript转换为C#,但是,我可能遇到了一个难题...尝试导出到Android时,提供的导出文件仅适用于Windows或Linux...然而,当我下载了非.NET版本的Godot(如果这有关系,版本是4.0.3),我也获得了android、ios和web导出模板。

Godot .NET/mono:
Godot for .NET Android Export

Godot:
Godot for .NET Android Export

我是不是漏掉了什么?我需要手动创建这些导出模板吗?我可以在哪里下载它们?或者Godot .NET只能导出到Windows或Linux(我强烈怀疑这一点,因为它让我执行导出到Android的所有步骤,只是缺少模板)!

英文:

I am trying to learn to use Godot while at the same time using C# as the scripting language, I've followed along several tutorials and have been successful in converting the GDScript into C# in all of them so far, however, I've run into what may be an impasse... when trying to export to Android the provided export files are only for Windows or Linux... however when I downloaded the non-.NET version of Godot (4.0.3 if that matters) I also get android, ios and web export templates.

Godot .NET/mono:
Godot for .NET Android Export

Godot:

Godot for .NET Android Export

Am I missing something? Do I need to manually create those export templates? Can I download them somewhere? Or does Godot .NET just not able to export to anything but Windows or Linux (I highly doubt this as it lets me do all of the steps to export to Android, minus the missing templates)!

答案1

得分: 1

不删除这个问题,我将其保留供下一个遇到此问题的人参考,但您可以将 Android 导出模板从非.NET版本的 Godot 复制到.NET版本,一切似乎都可以正常工作...也就是说,我能够直接从 Godot 在我的 Android 手机上进行调试。

顺便说一下:如果您遇到“目标平台尚未实现错误”并且无法从 Godot 在您的 Android 设备上远程导出/运行您的应用程序(黑屏),请尝试安装正确的 Android 构建工具版本,即:
33.0.2 <- 安装这个确切版本。您可能仍然会遇到错误,但现在它将正确推送到您的手机。

更多详细信息:https://github.com/godotengine/godot/issues/55133#issuecomment-1589054217

英文:

Well, instead of deleting this question, I'll leave this here for the next one who comes across this issue, but you can just copy the android export templates from the non-.NET version of Godot to the .NET version and it all seems to work just fine... that is, I was able to debug on my Android phone directly from Godot.

BTW: if you also run into the "Target platform not yet implemented error" error and not being able to export/run your app remotely from Godot on your Android device (black screen). Try installing the correct Android build tools version, which is:
33.0.2 <- install this exact version. You may still get the errors but it will now push correctly to your phone.

More details: https://github.com/godotengine/godot/issues/55133#issuecomment-1589054217

huangapple
  • 本文由 发表于 2023年6月12日 15:55:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76454581.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定