You've already forked godot
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:
@@ -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]";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user