You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Ability to set autoloads as singleton global variables
This commit is contained in:
@@ -2570,6 +2570,12 @@ void GDScriptLanguage::_add_global(const StringName& p_name,const Variant& p_val
|
||||
_global_array=global_array.ptr();
|
||||
}
|
||||
|
||||
void GDScriptLanguage::add_global_constant(const StringName& p_variable,const Variant& p_value) {
|
||||
|
||||
_add_global(p_variable,p_value);
|
||||
}
|
||||
|
||||
|
||||
void GDScriptLanguage::init() {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user