mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Update class_name in Static typing in GDScript to follow style guide (#6821)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user