20 lines
799 B
Markdown
20 lines
799 B
Markdown
# ShrinkSDK.Godot
|
||
|
||
Godot 4.6 C# 宿主与平台服务适配包。
|
||
|
||
```powershell
|
||
dotnet add package ShrinkSDK.Godot --version 0.1.0
|
||
```
|
||
|
||
主场景根节点继承 `ShrinkGodotHost`,在 `_Ready` 中先调用 `base._Ready()`,再调用 `StartAppAsync()`。CodeGen 由依赖模块的 `buildTransitive` 自动启用。
|
||
|
||
## 可复用能力
|
||
|
||
<!-- shrink:capabilities -->
|
||
Capability: Godot 宿主生命周期、主线程派发与网络每帧处理预算
|
||
Aliases: Godot 主线程 派发 队列 预算
|
||
Limits: Godot C# 需要 .NET SDK;Unity 编译输入不包含此宿主,符号查询使用 --project Godot/Packages/ShrinkSDK.Godot/ShrinkSDK.Godot.csproj
|
||
Extension: ShrinkGodotHost.NetworkDispatchBudgetPerFrame 与 TryPost
|
||
Evidence: [ShrinkGodotHost](ShrinkGodotHost.cs)
|
||
<!-- /shrink:capabilities -->
|