Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
C#/.NET
C# 是由 Microsoft 開發的高階程式語言。Godot 支援 C# 作為腳本語言選項之一,與 Godot 自家的 GDScript 並列。
標準版 Godot 執行檔預設並不包含 C# 支援。若要在你的專案中啟用 C#,請至 Godot 官方網站 下載專為 .NET 準備的編輯器版本 。
Godot C# API
Godot 作為通用型遊戲引擎,透過 API 提供多種高階功能。下列文章將說明這些功能如何與 C# 整合,以及 C# API 與 GDScript 的異同。
C# 平台支援
也參考
請參閱 系統需求 以瞭解 Godot 引擎的硬體與軟體需求。
備註
由於 C# 專案需使用 .NET 執行時環境,請同時確認你所用 .NET 版本的系統需求。請見 支援的作業系統。
自 Godot 4.2 起,使用 C# 撰寫的專案已支援所有桌面平台(Windows、Linux 及 macOS),以及 Android 與 iOS。
Android 支援目前為實驗性質。
iOS 支援目前為實驗性質,且有部分限制。
官方提供的 iOS 模擬器匯出範本僅支援
x64架構。Exporting to iOS can only be done from a macOS device.
目前,使用 C# 撰寫的專案無法匯出至網頁平台。若需在該平台使用 C#,請考慮使用 Godot 3。