Преглед на файлове

Adds a @UsedByGodot mention in the Android Plugin docs. (#7151)

Ross Rothenstine преди 2 години
родител
ревизия
deb969b97a
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      tutorials/platform/android/android_plugin.rst

+ 2 - 1
tutorials/platform/android/android_plugin.rst

@@ -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.
 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::
 From your script::