GDScriptNew Method |
Returns a new instance of the script.
For example:
var MyClass = load("myclass.gd") var instance = MyClass.new() assert(instance.get_script() == MyClass)
Namespace: Godot
public Object New( params Object[] args )
[Missing <param name="args"/> documentation for "M:Godot.GDScript.New(System.Object[])"]
[Missing <returns> documentation for "M:Godot.GDScript.New(System.Object[])"]