Open hhstore opened 1 year ago
topic:
awesome:
RPG:
射击游戏:
注意! 当前 M1 Mac 必须安装 arm64 版本的 .NET 6. 不可安装 x64 版本, 否则, godot 找不到 .NET.
✅ https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#examples
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --runtime dotnet --version 7.0.5
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --runtime dotnet --version 6.0.16
- ✅ .NET 依赖: https://dotnet.microsoft.com/en-us/download/dotnet/7.0
- 注意 M1 Mac, 仍然安装 x64 版本
- ✅ https://godotengine.org/article/dev-snapshot-godot-4-0-beta-16/
- ✅ 已经支持 .NET 7
- ✅ https://news.ycombinator.com/item?id=34547637
### 设置 .NET 环境变量:
- 安装完 .NET, 需要重启 Mac, 才能生效.
- fix: https://github.com/godotengine/godot/issues/75668#issuecomment-1566213431
- fix: https://github.com/godotengine/godot/issues/75186
- ✅ https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#set-environment-variables
- ✅ 安装路径: `/usr/local/share/dotnet/x64/sdk`,
- 版本: `6.0.408`
- 版本: `7.0.302`
- https://learn.microsoft.com/en-us/dotnet/core/install/macos#path-differences
```ruby
/usr/local/share/dotnet/dotnet
, 不是 /usr/local/share/dotnet/x64/dotnet
❯ /usr/local/share/dotnet/dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.408
Commit: 0c3669d367
Runtime Environment:
OS Name: Mac OS X
OS Version: 12.4
OS Platform: Darwin
RID: osx.12-arm64
Base Path: /usr/local/share/dotnet/sdk/6.0.408/
global.json file:
Not found
Host:
Version: 6.0.16
Architecture: arm64
Commit: 1e620a42e7
.NET SDKs installed:
6.0.408 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.16 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Download .NET:
https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-info
mkdir -p ~/dotnet-core-uninstall
tar -zxf dotnet-core-uninstall.tar.gz -C ~/dotnet-core-uninstall
cd ~/dotnet-core-uninstall
./dotnet-core-uninstall -h
fix:
开发环境:
开始:
推荐使用(脚本语言):
不推荐使用(脚本语言):
基础语法点:
进阶语法点:
静态类型:
type hints
Godot 3
版本方案, 不建议新项目使用, Godot 4
已改为 GDExtension
.1
1
1
1
related: