소스 검색

Updated method name in GDScript example

_on_visible_on_screen_notifier_3d_screen_exited is the default name for the method created in GDScript, and is how the function is referred to elsewhere in the instructions. C# might need changing as well.
felixmreeve 2 년 전
부모
커밋
9ece5c7f59
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      getting_started/first_3d_game/04.mob_scene.rst

+ 1 - 1
getting_started/first_3d_game/04.mob_scene.rst

@@ -237,7 +237,7 @@ method. This function destroy the instance it's called on.
 .. tabs::
  .. code-tab:: gdscript GDScript
 
-   func _on_VisibilityNotifier_screen_exited():
+   func _on_visible_on_screen_notifier_3d_screen_exited():
        queue_free()
 
  .. code-tab:: csharp