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

Method reload_tool_script

modules/mono/csharp_script.cpp:589–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587}
588
589void CSharpLanguage::reload_tool_script(const Ref<Script> &p_script, bool p_soft_reload) {
590 CRASH_COND(!Engine::get_singleton()->is_editor_hint());
591
592#ifdef TOOLS_ENABLED
593 get_godotsharp_editor()->get_node(NodePath("HotReloadAssemblyWatcher"))->call("RestartTimer");
594#endif
595
596#ifdef GD_MONO_HOT_RELOAD
597 if (is_assembly_reloading_needed()) {
598 reload_assemblies(p_soft_reload);
599 }
600#endif
601}
602
603#ifdef GD_MONO_HOT_RELOAD
604bool CSharpLanguage::is_assembly_reloading_needed() {

Callers 1

saveMethod · 0.45

Calls 4

NodePathClass · 0.50
is_editor_hintMethod · 0.45
callMethod · 0.45
get_nodeMethod · 0.45

Tested by

no test coverage detected