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

Method get_property_state

core/object/script_instance.cpp:68–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void ScriptInstance::get_property_state(List<Pair<StringName, Variant>> &state) {
69 List<PropertyInfo> pinfo;
70 get_property_list(&pinfo);
71 for (const PropertyInfo &E : pinfo) {
72 if (E.usage & PROPERTY_USAGE_STORAGE) {
73 Pair<StringName, Variant> p;
74 p.first = E.name;
75 if (get(p.first, p.second)) {
76 state.push_back(p);
77 }
78 }
79 }
80}
81
82void ScriptInstance::property_set_fallback(const StringName &, const Variant &, bool *r_valid) {
83 if (r_valid) {

Callers 4

instantiateMethod · 0.80
reload_assembliesMethod · 0.80
reload_scriptsMethod · 0.80

Calls 3

get_property_listFunction · 0.85
getFunction · 0.70
push_backMethod · 0.45

Tested by 1