|
@@ -179,7 +179,14 @@ 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-pack","ref://foo.pck");``
|
|
|
+ Example:````
|
|
|
+
|
|
|
+.. code-block:: java
|
|
|
+
|
|
|
+@Overrude
|
|
|
+public List<String> getCommandLine(){
|
|
|
+ return List.of("--main-pack","res://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.
|
|
|
|