godotengine / godot-google-play-billing

Godot Android plugin for the Google Play Billing library
MIT License
138 stars 39 forks source link

Singleton does not exist #54

Closed bobokox closed 11 months ago

bobokox commented 11 months 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 11 months 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 11 months 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 11 months ago

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