godot-sdk-integrations / godot-google-play-billing

Godot Android plugin for the Google Play Billing library
MIT License
160 stars 50 forks source link

Singleton does not exist #54

Closed bobokox closed 1 year ago

bobokox commented 1 year ago

Hi!

I've tried to setup the plugin in 4.0.3 using finepointcgi's release. I can see the plugin in the android export settings and i checked it, but the singleton is not there.

var payment = Engine.get_singleton("GodotGooglePlayBilling") -> Failed to retrieve non-existent singleton 'GodotGooglePlayBilling'.

print(Engine.get_singleton_list()) -> GodotGooglePlayBilling is not in the list

Am I doing something wrong?

Thank you!

NianoTT commented 1 year ago

Just to make sure, you are trying it on Android? The singleton won't be there if you run it on desktop.

bobokox commented 1 year ago

Thank you for the quick reply. Yes, remote debug on android. No singleton in the list.

Edit: my bad. I've restarted the engine and the plugin was somehow unchecked again. It's there now!

bobokox commented 1 year ago

my bad. I've restarted the engine and the plugin was somehow unchecked again. It's there now!