41 Commits

Author SHA1 Message Date
Hugo Locurcio
b3cbe5f777 Remove old Godot version references to simplify documentation
This follows the documentation writing guidelines, specifically
the "When to refer to a specific Godot version" section.

This also removes warning blocks for a known issue that was resolved in Godot 4.5.
2025-10-07 19:01:12 +02:00
AtelierFerrofell
310494375b Update c_sharp_exports.rst to remove note about typed dictionary support
That note appears to be obsolete
2025-08-01 19:35:32 -07:00
Deer ♡
d3794505f0 Update c_sharp_exports.rst
changed line 458:
    public MyEnum MyEnum { get; set; }
to:
    public MyEnum MyEnumCurrent { get; set; }

because it throws an error if you reuse the already declared name
2025-04-03 19:19:01 +02:00
tetrapod00
76da87bf07 Document [ExportToolButton] 2025-02-02 17:44:06 -08:00
tetrapod00
c4d3aa134a Standardize RST header syntax 2024-12-29 13:44:09 -08:00
Raul Santos
cea78730d0 [.NET] Use collection expressions
As of C# 12 we can now use collection expressions to reduce some boilerplate when initializing collections.
2024-12-21 03:38:42 +01:00
Max Hilbrunner
8095573f87 C# exports: Fix semicolon syntax error
Co-authored-by: Loregret <31369647+Loregret@users.noreply.github.com>
2024-11-17 11:01:41 +01:00
Hugo Locurcio
4c3020b775 Document @export_custom and additional range hints in GDScript exports
This also adds a hint suffix example to C# exports.

Co-authored-by: Shawn Hardern <126725649+ShawnHardern@users.noreply.github.com>
2024-11-11 17:22:44 +01:00
Anaclecio Brederodes
e01f00f069 Correctly name enum type
Previously the example defined a "MyEnum" enum, but used a "SpellElements" type export. I've changed so it now defines a "SpellElements" enum.
2024-10-29 18:36:16 -03:00
Sai Nane
f10b322c27 Fix description of typed resource exports
`AnimationNode`'s inherited classes are `Resource`, `RefCounted`, and `Object`.

I assume it meant to say "derived classes", or something along the lines of
"and all classes which inherit it".
2024-08-06 14:49:08 +00:00
markdibarry
7aa096ec41 Add links for overriding default 2024-04-19 20:48:52 -04:00
31
868d48d6c3 Clarify C# GlobalClass exported node behavior 2024-02-08 11:33:16 -08:00
Max Hilbrunner
840b629c3e Merge pull request #8894 from 31/dev/31/variant-ref
Link to C# Variant-compatible section directly
2024-02-04 22:19:32 +01:00
31
8b94fc9501 Link to C# Variant-compatible section directly 2024-02-03 19:54:47 -08:00
31
ec757a3839 Fix C# typos: capitalize method name, use public property names 2024-02-02 01:07:54 -08:00
Max Hilbrunner
dd84a8623e Merge pull request #8859 from 31/dev/31/backing-export-behavior
c_sharp_exports.rst: add complex getter/setter note
2024-02-01 22:47:58 +01:00
31
cfa455efaf c_sharp_exports.rst: add complex getter/setter note 2024-01-29 23:40:29 -08:00
31
b3b15a6076 c_sharp_exports.rst: more consistent public style; minor grammar 2024-01-29 23:37:50 -08:00
Matthew
0cb17c02b1 Merge pull request #8861 from 31/dev/31/export-code-comments
c_sharp_exports.rst: move code comments to text
2024-01-29 20:40:03 -05:00
31
7c344c528f Simplify node/resource export in "Basic use" 2024-01-29 10:08:39 -08:00
31
23d9944e56 c_sharp_exports.rst: move code comments to text 2024-01-28 23:22:58 -08:00
31
65085d9330 c_sharp_exports.rst: clarify why exporting nodes/resources is useful 2024-01-28 22:58:25 -08:00
Max Hilbrunner
9e6534f539 Merge pull request #8440 from tetrapod00/patch-2
c_sharp_exports.rst: use uint for layers; update casing to C# convention
2023-11-10 22:25:40 +01:00
Yuri Sizov
cd92be066d Update references to private class methods across the docs 2023-11-10 16:06:36 +01:00
tetrapod
5e16b58e79 Use uint for layers in c_sharp_exports.rst 2023-11-09 13:38:08 -08:00
Yuri Sizov
ac728e8dd2 Update the state of C#/.NET support as of 4.2 2023-10-03 18:03:52 +02:00
Max Hilbrunner
c26440a0b0 Merge pull request #7626 from bbrainstormer/master 2023-07-18 13:26:28 +02:00
CactiChameleon9
cf5222b129 Fix mention of Godot3's or_lesser for export_range 2023-07-08 06:34:20 +01:00
bbrainstormer
2af093e679 Remove exprange info
PropertyHint.ExpRange was removed in godot 3.4.  This commit removes the outdated information from the wiki.
2023-07-07 20:54:10 -04:00
Raul Santos
27e7f8433c Add page about using global classes in C# (#6740)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-06-06 11:13:49 +02:00
Raul Santos
62266a1634 Update C# exports documentation (#6746)
* Update C# exports documentation

- Node exports are supported in 4.0.
- Add documentation about exporting enums (and flag enums).
- Add more documentation about exporting collections.
- Changes to follow our style guide more closely.

---------

Co-authored-by: Hana <48352564+Piralein@users.noreply.github.com>
2023-02-12 18:31:38 +01:00
31
ec045a4342 Lowercase titles for C# exports and signals pages 2023-02-04 16:08:57 -08:00
Raul Santos
b319da3f07 Update some C# examples for 4.0 (#6693)
* Update some C# examples

- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Other minor code fixes.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-04 17:03:03 +01:00
Paul Joannon
d70bc1b691 Document export grouping in C# (#6621)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-01-17 02:45:47 +01:00
Paul Joannon
ac22d6e537 Update & fix C# blocks under tutorials/scripting/
- `_Process` and `_PhysicsProcess` take their delta argument as a `double`
- Use string interpolation instead of concatenating strings
- Use `string` instead of `String` (`using System` was removed from everywhere in a previous PR)
- Use `System.Array.Empty<T>()` to init empty arrays
- Use `SignalName.*` instead of `nameof(*)` for signals
- Do not use `event` as an argument name (that's a keyword)
- Match node paths to screenshots when retrieving nodes from the tree
- Add a C# example for scene unique nodes
- Update the "Cross language scripting" page
- Add a note about using `is` against `null`
2023-01-13 20:41:23 +01:00
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
Max Hilbrunner
99d3d0be12 Renames / fixes for Godot 4 2022-10-17 00:35:07 +02:00
Max Hilbrunner
198393eec7 More Godot 4 rename fixes (#6315)
* Spatial -> 3D, Transform, Quaternion

* File -> FileAccess

* Camera -> Camera3D

* Update references to MeshInstance and MultiMeshInstance

* ImmediateGeometry -> ImmediateMesh, misc renames
2022-10-15 20:54:47 +02:00
luz paz
04f66dc5d0 Fix various typos
Found via `codespell -q 3 -S ./LICENSE.txt,./tutorials/i18n,./_tools/codespell-ignore-lines.txt -L doubleclick,findn,lod,inout,nd,raison,te` and other means
2022-07-28 10:35:04 -04:00
Aaron Franke
4060179184 Remove trailing space characters (#5251) 2021-09-13 14:52:39 +02:00
skyace65
f8fffccde0 Add C# Export Page 2021-09-07 08:38:17 -04:00