Update class_name in Static typing in GDScript to follow style guide (#6821)

This commit is contained in:
Kirito
2023-02-26 01:03:32 +01:00
committed by Hugo Locurcio
parent 201dba1df0
commit 56f8125aa3

View File

@@ -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