| 368 | } |
| 369 | |
| 370 | bool 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 | |
| 382 | void Engine::remove_singleton(const StringName &p_name) { |
| 383 | ERR_FAIL_COND(!singleton_ptrs.has(p_name)); |