mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Fix variable casing for class load() in GDScript basics (#5309)
This commit is contained in:
@@ -1233,7 +1233,7 @@ either the ``load`` or ``preload`` functions (see below). Instancing of a loaded
|
||||
class resource is done by calling the ``new`` function on the class object::
|
||||
|
||||
# Load the class resource when calling load().
|
||||
var my_class = load("myclass.gd")
|
||||
var MyClass = load("myclass.gd")
|
||||
|
||||
# Preload the class only once at compile time.
|
||||
const MyClass = preload("myclass.gd")
|
||||
|
||||
Reference in New Issue
Block a user