Skip to content

Commit 7c344c5

Browse files
committed
Simplify node/resource export in "Basic use"
1 parent 65085d9 commit 7c344c5

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

tutorials/scripting/c_sharp/c_sharp_exports.rst

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,9 @@ Exported members can specify a default value; otherwise, the `default value of t
7171
set => _greeting = value;
7272
}
7373
74-
Resources and nodes can be exported. The property editor shows a user-friendly
75-
assignment dialog for these types. This can be used instead of ``GD.Load`` and
76-
``GetNode``.
77-
78-
.. code-block:: csharp
79-
80-
[Export]
81-
public Resource Resource { get; set; }
82-
83-
[Export]
84-
public Node Node { get; set; }
85-
86-
Exporting a specific type of resource or node lets the property editor show a
87-
filtered list of possibilities.
74+
Any type of ``Resource`` or ``Node`` can be exported. The property editor shows
75+
a user-friendly assignment dialog for these types. This can be used instead of
76+
``GD.Load`` and ``GetNode``. See :ref:`Nodes and Resources <doc_c_sharp_exports_nodes>`.
8877

8978
.. code-block:: csharp
9079
@@ -254,6 +243,8 @@ Color given as red-green-blue value (alpha will always be 1).
254243
[Export(PropertyHint.ColorNoAlpha)]
255244
private Color Color { get; set; }
256245
246+
.. _doc_c_sharp_exports_nodes:
247+
257248
Nodes
258249
-----
259250

0 commit comments

Comments
 (0)