From 0805e6b1da7978e4a83e0b63c889ef83d9b61c76 Mon Sep 17 00:00:00 2001 From: Kenan Kartal Date: Mon, 14 Apr 2025 11:23:12 +0300 Subject: [PATCH] Update pck section of embedding Godot to Android Updated "Create the Godot Project" section of the tutorial page for embedding Godot to an existing Android project [1]. I specified that the pck file needs to be prefixed with "res://" and written a Kotlin code example. [1] https://docs.godotengine.org/en/stable/tutorials/platform/android/android_library.html#create-the-godot-project --- tutorials/platform/android/android_library.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tutorials/platform/android/android_library.rst b/tutorials/platform/android/android_library.rst index 63e18b84627..1d38ca2b5bd 100644 --- a/tutorials/platform/android/android_library.rst +++ b/tutorials/platform/android/android_library.rst @@ -177,7 +177,13 @@ Below we break-down the steps used to create the GLTF Viewer app. Note that it's also possible to create the Godot project in a separate directory and export it as a `PCK or ZIP file `_ to the Android app's ``assets`` directory. - Using this approach requires passing the ``--main-pack `` argument to the hosted Godot Engine instance using `GodotHost#getCommandLine() `_. + Using this approach requires passing the ``--main-pack res://`` argument to the hosted Godot Engine instance using `GodotHost#getCommandLine() `_. + + .. code-block:: kotlin + + override fun getCommandLine(): MutableList { + return mutableListOf("--main-pack", "res://game.pck"); + } The instructions below and the sample app follow the first approach of creating the Godot project in the Android app's ``assets`` directory.