Skip to content

Commit 65085d9

Browse files
committed
c_sharp_exports.rst: clarify why exporting nodes/resources is useful
1 parent 67b1795 commit 65085d9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tutorials/scripting/c_sharp/c_sharp_exports.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +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.
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``.
7577

7678
.. code-block:: csharp
7779
@@ -81,6 +83,17 @@ Resources and nodes can be exported.
8183
[Export]
8284
public Node Node { get; set; }
8385
86+
Exporting a specific type of resource or node lets the property editor show a
87+
filtered list of possibilities.
88+
89+
.. code-block:: csharp
90+
91+
[Export]
92+
public PackedScene PackedScene { get; set; }
93+
94+
[Export]
95+
public RigidBody2D RigidBody2D { get; set; }
96+
8497
Grouping exports
8598
----------------
8699

0 commit comments

Comments
 (0)