-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8142 from YuriSizov/csharp-support-update
Update the state of C#/.NET support as of 4.2
- Loading branch information
Showing
7 changed files
with
70 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,54 @@ | ||
C# | ||
=== | ||
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 :ref:`GDScript<toc-learn-scripting-gdscript>`. | ||
|
||
The standard Godot executable does not contain C# support out of the box. Instead, | ||
to enable C# support for your project you need to `download a .NET version <https://godotengine.org/download/>`_ | ||
of the editor from the Godot website. | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:name: toc-learn-scripting-C# | ||
|
||
c_sharp_basics | ||
c_sharp_features | ||
c_sharp_style_guide | ||
diagnostics/index | ||
|
||
Godot API for C# | ||
---------------- | ||
|
||
As a general purpose game engine Godot offers some high-level features as a part | ||
of its API. Articles below explain how these features intergrate into C# and how | ||
C# API may be different from GDScript. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:name: toc-learn-scripting-C#-differences | ||
|
||
c_sharp_differences | ||
c_sharp_collections | ||
c_sharp_variant | ||
c_sharp_signals | ||
c_sharp_exports | ||
c_sharp_global_classes | ||
c_sharp_style_guide | ||
diagnostics/index | ||
|
||
.. _doc_c_sharp_platforms: | ||
|
||
C# platform support | ||
------------------- | ||
|
||
As of Godot 4.2 projects written in C# support all desktop platforms (Windows, Linux, | ||
and macOS), as well as Android. Android support is currently experimental and has a few | ||
limitations. | ||
|
||
- Projects targeting Android need to be created using .NET 7.0 or higher. This requires | ||
modifying the `.csproj` file generated by Godot. | ||
|
||
- Only some Android architectures are supported: ``arm64`` and ``x64``. | ||
|
||
Currently, projects written in C# cannot be exported to iOS and web platforms. To use C# | ||
on those platforms, consider Godot 3 instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters