index.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. C#/.NET
  2. =======
  3. C# is a high-level programming language developed by Microsoft. Godot supports
  4. C# as an option for a scripting language, alongside Godot's own :ref:`GDScript<toc-learn-scripting-gdscript>`.
  5. The standard Godot executable does not contain C# support out of the box. Instead,
  6. to enable C# support for your project you need to `download a .NET version <https://godotengine.org/download/>`_
  7. of the editor from the Godot website.
  8. .. toctree::
  9. :maxdepth: 1
  10. :name: toc-learn-scripting-C#
  11. c_sharp_basics
  12. c_sharp_features
  13. c_sharp_style_guide
  14. diagnostics/index
  15. Godot API for C#
  16. ----------------
  17. As a general purpose game engine Godot offers some high-level features as a part
  18. of its API. Articles below explain how these features intergrate into C# and how
  19. C# API may be different from GDScript.
  20. .. toctree::
  21. :maxdepth: 1
  22. :name: toc-learn-scripting-C#-differences
  23. c_sharp_differences
  24. c_sharp_collections
  25. c_sharp_variant
  26. c_sharp_signals
  27. c_sharp_exports
  28. c_sharp_global_classes
  29. .. _doc_c_sharp_platforms:
  30. C# platform support
  31. -------------------
  32. As of Godot 4.2 projects written in C# support all desktop platforms (Windows, Linux,
  33. and macOS), as well as Android. Android support is currently experimental and has a few
  34. limitations.
  35. - Projects targeting Android need to be created using .NET 7.0 or higher. This requires
  36. modifying the `.csproj` file generated by Godot.
  37. - Only some Android architectures are supported: ``arm64`` and ``x64``.
  38. Currently, projects written in C# cannot be exported to iOS and web platforms. To use C#
  39. on those platforms, consider Godot 3 instead.