From daaf88c33739b4c909d33d989f95f2a3f1696f93 Mon Sep 17 00:00:00 2001 From: Kirito <51691757+KoB-Kirito@users.noreply.github.com> Date: Sun, 26 Feb 2023 01:03:32 +0100 Subject: [PATCH] Update `class_name` in Static typing in GDScript to follow style guide (#6821) --- tutorials/scripting/gdscript/static_typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/scripting/gdscript/static_typing.rst b/tutorials/scripting/gdscript/static_typing.rst index 66ce19c81..8b6dc0aff 100644 --- a/tutorials/scripting/gdscript/static_typing.rst +++ b/tutorials/scripting/gdscript/static_typing.rst @@ -131,8 +131,8 @@ For the example above, your Rifle.gd would look like this: :: - extends Node2D class_name Rifle + extends Node2D If you use ``class_name``, Godot registers the Rifle type globally in the editor, and you can use it anywhere, without having to preload it