diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp index 086f8a666efb..483e8a940536 100644 --- a/core/object/script_language.cpp +++ b/core/object/script_language.cpp @@ -129,6 +129,7 @@ PropertyInfo Script::get_class_category() const { void Script::_bind_methods() { ClassDB::bind_method(D_METHOD("can_instantiate"), &Script::can_instantiate); + ClassDB::bind_method(D_METHOD("get_global_name"), &Script::get_global_name); //ClassDB::bind_method(D_METHOD("instance_create","base_object"),&Script::instance_create); ClassDB::bind_method(D_METHOD("instance_has", "base_object"), &Script::instance_has); ClassDB::bind_method(D_METHOD("has_source_code"), &Script::has_source_code); diff --git a/doc/classes/Script.xml b/doc/classes/Script.xml index 28d763585d3f..7446f6edc582 100644 --- a/doc/classes/Script.xml +++ b/doc/classes/Script.xml @@ -24,6 +24,12 @@ Returns the script directly inherited by this script. + + + + Returns the global class name of this script. + +