Ver Fonte

Update gdscript.rst

Mohammad Hadi Aliakbar há 9 anos atrás
pai
commit
1ef73d6bfc
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      reference/gdscript.rst

+ 4 - 1
reference/gdscript.rst

@@ -744,7 +744,10 @@ variables:
 
 
     export(Color, RGB) var col  # Color is RGB
     export(Color, RGB) var col  # Color is RGB
     export(Color, RGBA) var col  # Color is RGBA
     export(Color, RGBA) var col  # Color is RGBA
-
+   
+    # another node in the scene can be exported too
+    
+    export(NodePath) var node
 It must be noted that even if the script is not being run while at the
 It must be noted that even if the script is not being run while at the
 editor, the exported properties are still editable (see below for
 editor, the exported properties are still editable (see below for
 "tool").
 "tool").