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

Method to_string

scene/main/node.cpp:2780–2798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2778}
2779
2780String Node::to_string() {
2781 ERR_THREAD_GUARD_V(String());
2782 if (get_script_instance()) {
2783 bool valid;
2784 String ret = get_script_instance()->to_string(&valid);
2785 if (valid) {
2786 return ret;
2787 }
2788 }
2789 if (_get_extension() && _get_extension()->to_string) {
2790 String ret;
2791 GDExtensionBool is_valid;
2792 _get_extension()->to_string(_get_extension_instance(), &is_valid, &ret);
2793 if (is_valid) {
2794 return ret;
2795 }
2796 }
2797 return (get_name() ? String(get_name()) + ":" : "") + Object::to_string();
2798}
2799
2800void Node::set_scene_instance_state(const Ref<SceneState> &p_state) {
2801 ERR_THREAD_GUARD

Callers 1

Calls 3

to_stringFunction · 0.85
StringClass · 0.50
get_nameFunction · 0.50

Tested by

no test coverage detected