mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Adds a @UsedByGodot mention in the Android Plugin docs. (#7151)
This commit is contained in:
@@ -125,8 +125,9 @@ Move the plugin configuration file (e.g: ``MyPlugin.gdap``) and, if any, its loc
|
||||
|
||||
The Godot editor will automatically parse all ``.gdap`` files in the ``res://android/plugins`` directory and show a list of detected and toggleable plugins in the Android export presets window under the **Plugins** section.
|
||||
|
||||
.. image:: img/android_export_preset_plugins_section.png
|
||||
In order to allow GDScript to communicate with your Java Singleton, you must annotate your function with ``@UsedByGodot``. The name called from GDScript must match the function name exactly. There is **no** coercing ``snake_case`` to ``camelCase``.
|
||||
|
||||
.. image:: img/android_export_preset_plugins_section.png
|
||||
|
||||
From your script::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user