Преглед на файлове

Add missing `onready` for NodePath usage in GDScript exports (#5694)

Harmony Honey преди 3 години
родител
ревизия
0a1bef0dd0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tutorials/scripting/gdscript/gdscript_exports.rst

+ 1 - 1
tutorials/scripting/gdscript/gdscript_exports.rst

@@ -121,7 +121,7 @@ Examples
     export(NodePath) var node_path
     # Do take note that the node itself isn't being exported -
     # there is one more step to call the true node:
-    var node = get_node(node_path)
+    onready var node = get_node(node_path)
 
     # Resources