From fb2c9c3687342240dd2f2fb10bfdd93da046cd5a Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 19 Dec 2023 12:01:54 +0100 Subject: Add _to_string method to extension classes. So printing them in Godot shows the proper class name instead of "Wrapped". --- src/WebRTCLibPeerConnection.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/WebRTCLibPeerConnection.hpp') diff --git a/src/WebRTCLibPeerConnection.hpp b/src/WebRTCLibPeerConnection.hpp index 6608735..1bcb29e 100644 --- a/src/WebRTCLibPeerConnection.hpp +++ b/src/WebRTCLibPeerConnection.hpp @@ -67,6 +67,10 @@ private: protected: static void _bind_methods() {} + godot::String _to_string() const { + return "WebRTCLibPeerConnection"; + } + public: static void _register_methods() {} static void initialize_signaling(); -- cgit v1.2.3