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

Method get_property_default_value

modules/mono/csharp_script.cpp:2635–2650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2633}
2634
2635bool CSharpScript::get_property_default_value(const StringName &p_property, Variant &r_value) const {
2636#ifdef TOOLS_ENABLED
2637
2638 HashMap<StringName, Variant>::ConstIterator E = exported_members_defval_cache.find(p_property);
2639 if (E) {
2640 r_value = E->value;
2641 return true;
2642 }
2643
2644 if (base_script.is_valid()) {
2645 return base_script->get_property_default_value(p_property, r_value);
2646 }
2647
2648#endif
2649 return false;
2650}
2651
2652void CSharpScript::update_exports() {
2653#ifdef TOOLS_ENABLED

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
is_validMethod · 0.45

Tested by

no test coverage detected