Selaa lähdekoodia

Simplify node/resource export in "Basic use"

31 1 vuosi sitten
vanhempi
commit
7c344c528f
1 muutettua tiedostoa jossa 5 lisäystä ja 14 poistoa
  1. 5 14
      tutorials/scripting/c_sharp/c_sharp_exports.rst

+ 5 - 14
tutorials/scripting/c_sharp/c_sharp_exports.rst

@@ -71,20 +71,9 @@ Exported members can specify a default value; otherwise, the `default value of t
         set => _greeting = value;
     }
 
-Resources and nodes can be exported. The property editor shows a user-friendly
-assignment dialog for these types. This can be used instead of ``GD.Load`` and
-``GetNode``.
-
-.. code-block:: csharp
-
-    [Export]
-    public Resource Resource { get; set; }
-
-    [Export]
-    public Node Node { get; set; }
-
-Exporting a specific type of resource or node lets the property editor show a
-filtered list of possibilities.
+Any type of ``Resource`` or ``Node`` can be exported. The property editor shows
+a user-friendly assignment dialog for these types. This can be used instead of
+``GD.Load`` and ``GetNode``. See :ref:`Nodes and Resources <doc_c_sharp_exports_nodes>`.
 
 .. code-block:: csharp
 
@@ -254,6 +243,8 @@ Color given as red-green-blue value (alpha will always be 1).
     [Export(PropertyHint.ColorNoAlpha)]
     private Color Color { get; set; }
 
+.. _doc_c_sharp_exports_nodes:
+
 Nodes
 -----