Skip to content

Update pck section of embedding Godot to Android #10862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

kkartal-infodif
Copy link

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

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
@skyace65 skyace65 added enhancement area:manual Issues and PRs related to the Manual/Tutorials section of the documentation platform:android labels Apr 14, 2025
@skyace65 skyace65 requested a review from a team April 14, 2025 20:01
Copy link
Contributor

@m4gr3d m4gr3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kkartal-infodif This PR has partial overlap with #10758.
You can either update the changes to the ones not covered by the other PR, or comment on the other PR so that they can include your changes.

@@ -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 <https://docs.godotengine.org/en/stable/tutorials/export/exporting_projects.html#pck-versus-zip-pack-file-formats>`_
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>`_.
Using this approach requires passing the ``--main-pack res://<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>`_.
Copy link
Member

@syntaxerror247 syntaxerror247 Apr 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to specify res:// in --main-pack res://<pck_or_zip_filepath_relative_to_assets_dir>. Example should be enough.

@syntaxerror247
Copy link
Member

#10758 already covers the changes made in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation enhancement platform:android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants