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

Method is_singleton_editor_only

core/config/engine.cpp:370–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370bool Engine::is_singleton_editor_only(const StringName &p_name) const {
371 ERR_FAIL_COND_V(!singleton_ptrs.has(p_name), false);
372
373 for (const Singleton &E : singletons) {
374 if (E.name == p_name && E.editor_only) {
375 return true;
376 }
377 }
378
379 return false;
380}
381
382void Engine::remove_singleton(const StringName &p_name) {
383 ERR_FAIL_COND(!singleton_ptrs.has(p_name));

Callers 1

debugMethod · 0.80

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected