diff --git a/include/godot_cpp/core/object.hpp b/include/godot_cpp/core/object.hpp index c1f106922..481325449 100644 --- a/include/godot_cpp/core/object.hpp +++ b/include/godot_cpp/core/object.hpp @@ -119,6 +119,11 @@ class ObjectDB { } return internal::get_object_instance_binding(obj); } + + template + static T *get_instance(uint64_t p_object_id) { + return Object::cast_to(ObjectDB::get_instance(p_object_id)); + } }; template