diff --git a/include/godot_cpp/core/object.hpp b/include/godot_cpp/core/object.hpp index c1f10692..48132544 100644 --- a/include/godot_cpp/core/object.hpp +++ b/include/godot_cpp/core/object.hpp @@ -119,6 +119,11 @@ public: } 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