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

Method unregister_singleton

core/core_bind.cpp:2050–2054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2048}
2049
2050void Engine::unregister_singleton(const StringName &p_name) {
2051 ERR_FAIL_COND_MSG(!has_singleton(p_name), vformat("Attempt to remove unregistered singleton: '%s'.", String(p_name)));
2052 ERR_FAIL_COND_MSG(!::Engine::get_singleton()->is_singleton_user_created(p_name), vformat("Attempt to remove non-user created singleton: '%s'.", String(p_name)));
2053 ::Engine::get_singleton()->remove_singleton(p_name);
2054}
2055
2056Vector<String> Engine::get_singleton_list() const {
2057 List<::Engine::Singleton> singletons;

Callers

nothing calls this directly

Calls 4

vformatFunction · 0.85
remove_singletonMethod · 0.80
StringClass · 0.50

Tested by

no test coverage detected