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

Method can_instantiate

modules/gdscript/gdscript.cpp:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261bool GDScript::can_instantiate() const {
262#ifdef TOOLS_ENABLED
263 return valid && (tool || ScriptServer::is_scripting_enabled()) && !Engine::get_singleton()->is_recovery_mode_hint();
264#else
265 return valid;
266#endif
267}
268
269Ref<Script> GDScript::get_base_script() const {
270 if (_base) {

Callers 1

main.cppFile · 0.45

Calls 1

is_recovery_mode_hintMethod · 0.80

Tested by

no test coverage detected