-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Android documentation for Godot 4.2
- Loading branch information
Showing
17 changed files
with
431 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.. _doc_android_library: | ||
|
||
Godot Android Library | ||
===================== | ||
|
||
Godot Engine for Android platforms is designed to be used as an `Android library <https://developer.android.com/studio/projects/android-library>`_. | ||
This architecture enables several key features on Android platforms: | ||
|
||
- Ability to integrate the Gradle buildsystem within the Godot Editor, which provides the ability to leverage more components from the Android ecosystem such as libraries and tools | ||
|
||
- Ability to make the engine portable and embeddable: | ||
|
||
- Key in enabling the port of the Godot Editor to Android and mobile XR devices | ||
- Key in allowing the integration and reuse of Godot's capabilities within existing codebase | ||
|
||
Below we will describe some of the use-cases and scenarios this flexible architecture enables. | ||
|
||
Using the Godot Android library | ||
------------------------------- | ||
|
||
The Godot Android library is packaged as an AAR archive file and hosted on `MavenCentral <https://central.sonatype.com/artifact/org.godotengine/godot/4.1.0.stable>`_ along with `its documentation <https://javadoc.io/doc/org.godotengine/godot/latest/index.html>`_. | ||
|
||
As an Android library, it has been used to provide access to the Godot API on Android platforms for the following use-cases. | ||
|
||
Godot Android plugins | ||
^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Android plugins are powerful tools to extend the capabilities of the Godot engine | ||
by tapping into the functionality provided by Android platforms and ecosystem. | ||
|
||
They are themselves Android libraries with a dependency on the Godot Android library, | ||
which they use to access the Godot API and integrate into the engine's lifecycle. | ||
|
||
Their nature as Android libraries means they offer some of the same key features as the Godot Android library, | ||
notably the ability to integrate with the Gradle buildsystem, and the ability for the plugins themselves to be portable and embeddable. | ||
|
||
Their access to the Godot engine APIs and lifecycle grant them powerful capabilities | ||
such as GDExtension which allow them to update / mod the engine behavior as needed. | ||
|
||
For more information, see :ref:`Godot Android plugins <doc_android_plugin>`. | ||
|
||
Embedding Godot in existing Android projects | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Due to its nature as an Android library, the Godot Engine can be easily integrated within existing Android applications or libraries, | ||
allowing developers to leverage mature and battle-tested code and libraries better suited to a specific task. | ||
|
||
The hosting component is responsible for driving the engine lifecycle via the provided APIs. | ||
These APIs can also be used to provide bidirectional communication between the host and the running Godot engine instance, allowing for greater control over the desired experience. | ||
|
||
Below, we walk-through how this is done using a sample app that exports and uses a Godot game as an embeddable Android view. |
Oops, something went wrong.