From 22bbdad11bc86a840cd51b7e71b926de679cc66e Mon Sep 17 00:00:00 2001 From: Konstantin Kopka Date: Fri, 19 May 2023 08:35:48 +0900 Subject: [PATCH 1/2] Update ios_plugin.rst Added additional note to clarify that the plugin's files *have* to be in the specific directory, otherwise it will not work. When developing myself, this was a stumbling block I would like others to be able to avoid. --- tutorials/platform/ios/ios_plugin.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tutorials/platform/ios/ios_plugin.rst b/tutorials/platform/ios/ios_plugin.rst index 954ac5107b9..cdb13a09941 100644 --- a/tutorials/platform/ios/ios_plugin.rst +++ b/tutorials/platform/ios/ios_plugin.rst @@ -27,6 +27,10 @@ When a plugin is active, you can access it in your using ``Engine.get_singleton( if Engine.has_singleton("MyPlugin"): var singleton = Engine.get_singleton("MyPlugin") print(singleton.foo()) + +.. note:: + + The plugin's files have to be in the ``res://ios/plugins/`` directory or a subdirectory, otherwise the Godot editor will not automatically detect them. Creating an iOS plugin ---------------------- From 01f484c7c2a8a1f08e20cfccf26a66a4ee1aa9a1 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Fri, 19 May 2023 09:37:11 +0200 Subject: [PATCH 2/2] Update tutorials/platform/ios/ios_plugin.rst --- tutorials/platform/ios/ios_plugin.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/platform/ios/ios_plugin.rst b/tutorials/platform/ios/ios_plugin.rst index cdb13a09941..efc0ce876ea 100644 --- a/tutorials/platform/ios/ios_plugin.rst +++ b/tutorials/platform/ios/ios_plugin.rst @@ -27,10 +27,10 @@ When a plugin is active, you can access it in your using ``Engine.get_singleton( if Engine.has_singleton("MyPlugin"): var singleton = Engine.get_singleton("MyPlugin") print(singleton.foo()) - + .. note:: - The plugin's files have to be in the ``res://ios/plugins/`` directory or a subdirectory, otherwise the Godot editor will not automatically detect them. + The plugin's files have to be in the ``res://ios/plugins/`` directory or a subdirectory, otherwise the Godot editor will not automatically detect them. Creating an iOS plugin ----------------------