MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / add_global_constant

Method add_global_constant

modules/gdscript/gdscript.cpp:2242–2244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2240}
2241
2242void GDScriptLanguage::add_global_constant(const StringName &p_variable, const Variant &p_value) {
2243 _add_global(p_variable, p_value);
2244}
2245
2246void GDScriptLanguage::add_named_global_constant(const StringName &p_name, const Variant &p_value) {
2247 named_globals[p_name] = p_value;

Callers 2

init_autoloadsFunction · 0.45
main.cppFile · 0.45

Calls

no outgoing calls

Tested by 1

init_autoloadsFunction · 0.36