Up to date
This page is up to date for Godot
If you still find outdated information, please open an issue.
A script implemented in the GDScript programming language.
A script implemented in the GDScript programming language. The script extends the functionality of all objects that instantiate it.
If you are looking for GDScript's built-in functions, see @GDScript instead.
new ( ... ) vararg
Variant new ( ... ) vararg
Returns a new instance of the script.
var MyClass = load("myclass.gd") var instance = MyClass.new() assert(instance.get_script() == MyClass)