MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_property_default_value

Method get_property_default_value

compat/fake_csharp_script.cpp:566–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566bool FakeCSharpScript::get_property_default_value(const StringName &p_property, Variant &r_value) const {
567 if (member_default_values.has(p_property)) {
568 r_value = member_default_values[p_property];
569 return true;
570 }
571 if (!members.has(p_property)) {
572 auto parent_script = get_base_script();
573 if (parent_script.is_valid()) {
574 return parent_script->get_property_default_value(p_property, r_value);
575 }
576 return false;
577 }
578 r_value = Variant();
579 return true;
580}
581
582void FakeCSharpScript::update_exports() {
583 // For now, do nothing

Callers

nothing calls this directly

Calls 1

is_validMethod · 0.45

Tested by

no test coverage detected