Browse Source

Fix function name for emit in GDScript

Rename emit() to emit_signal() since this is the right name
Julian Konchunas 6 years ago
parent
commit
613312b095
1 changed files with 1 additions and 1 deletions
  1. 1 1
      getting_started/step_by_step/signals.rst

+ 1 - 1
getting_started/step_by_step/signals.rst

@@ -184,7 +184,7 @@ To emit a signal via code, use the ``emit`` function:
     signal my_signal
     signal my_signal
 
 
     func _ready():
     func _ready():
-        emit("my_signal")
+        emit_signal("my_signal")
 
 
  .. code-tab:: csharp
  .. code-tab:: csharp