1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Merge pull request #27886 from LeonardMeagher2/obj_to_string

Allow overriding how scripted objects are converted to strings
This commit is contained in:
Rémi Verschelde
2019-05-20 22:37:01 +02:00
committed by GitHub
14 changed files with 107 additions and 1 deletions

View File

@@ -1601,7 +1601,7 @@ String Variant::stringify(List<const void *> &stack) const {
};
};
#endif
return "[" + _get_obj().obj->get_class() + ":" + itos(_get_obj().obj->get_instance_id()) + "]";
return _get_obj().obj->to_string();
} else
return "[Object:null]";