Forráskód Böngészése

Update android_library.rst

Add an example for using getCommandLine().
Showing the format for loading pck file in android.
WSQS 5 hónapja
szülő
commit
87435b46c6
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      tutorials/platform/android/android_library.rst

+ 2 - 0
tutorials/platform/android/android_library.rst

@@ -179,6 +179,8 @@ Below we break-down the steps used to create the GLTF Viewer app.
   to the Android app's ``assets`` directory.
   Using this approach requires passing the ``--main-pack <pck_or_zip_filepath_relative_to_assets_dir>`` argument to the hosted Godot Engine instance using `GodotHost#getCommandLine() <https://github.com/godotengine/godot/blob/6916349697a4339216469e9bf5899b983d78db07/platform/android/java/lib/src/org/godotengine/godot/GodotHost.java#L45>`_.
 
+  Example:``return List.of("--main-pac","ref://foo.pck");``
+
   The instructions below and the sample app follow the first approach of creating the Godot project in the Android app's ``assets`` directory.