C#/.NET

C# is a high-level programming language developed by Microsoft. Godot supports C# as an option for a scripting language, alongside Godot's own GDScript.

標準の Godot 実行ファイルには、C# サポートは含まれていません。プロジェクトで C# サポートを有効にするには、Godot の公式Webサイトから エディターの .NET バージョン をダウンロードする必要があります。

C# 向け Godot API

汎用ゲームエンジンである Godot は、API の一部としていくつかの高レベル機能を提供します。以下の記事ではこれらの機能が C# に統合される仕組みと、C# API が GDScript とどのように異なるかについて説明します。

C# のプラットフォームのサポート

参考

See 動作環境 for hardware and software version requirements for the Godot engine.

注釈

Since C# projects use the .NET runtime, also check the system requirements for the version of .NET that you'll be using. See supported OS.

Since Godot 4.2, projects written in C# support all desktop platforms (Windows, Linux, and macOS), as well as Android and iOS.

Android support is currently experimental.

iOS サポートは現在実験段階であり、いくつかの制限があります。

  • iOS シミュレーターの公式エクスポートテンプレートは、 x64 アーキテクチャのみをサポートします。

  • iOS へのエクスポートは、MacOS デバイスからのみ実行できます。

現在、C# で記述されたプロジェクトは Web プラットフォームにエクスポートできません。そのプラットフォームで C# を使用するには、代わりに Godot 3 を検討してください。