Godot-Android-Share-Plugin icon indicating copy to clipboard operation
Godot-Android-Share-Plugin copied to clipboard

What must I autoload?

Open MaaaxiKing opened this issue 4 years ago • 3 comments

I have the files in the plugins directory but in the demo you wrote " if Engine.has_singleton("GodotShare"): share = Engine.get_singleton("GodotShare") ". But what can I autoload, there is no script. What am I missing or overlooking?

MaaaxiKing avatar Feb 05 '21 19:02 MaaaxiKing

To use autoload (singleton) you can create an autoload script and then use the same logic that was on the demo. This way you can access the share property in any of your script.

Shin-NiL avatar Feb 07 '21 14:02 Shin-NiL

So making an empty script and autoload it? That can't be, can it?

MaaaxiKing avatar Feb 07 '21 14:02 MaaaxiKing

Yeah, it's how the Godot autload works :P

Shin-NiL avatar Feb 11 '21 11:02 Shin-NiL