Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Template for Plugin V1 Godot 3.x Android

An asset by MedGasan
The page banner background of a mountain and forest
Template for Plugin V1 Godot 3.x Android hero image

Quick Information

0 ratings
Template for Plugin V1 Godot 3.x Android icon image
MedGasan
Template for Plugin V1 Godot 3.x Android

Preconfigured Template for Creating Android PluginsImprovements:- To define exportable methods, they only need to be public and contain the @GodotMethod annotation.- The template automatically collects these methods and exposes them to the Engine.- For now, signals are still defined in the initSignals() method.- The plugin exposes the class name as the plugin name in getPluginName().- Automatically generates the gdap file to start using the plugin right away.

Supported Engine Version
3.2
Version String
0.9
License Version
Apache-2.0
Support Level
community
Modified Date
10 months ago
Git URL
Issue URL

Plantilla para Plugin V1 Godot 3.x Android

Plantilla preconfigurada para crear plugins android

Mejoras:

  • Para definir los métodos exportables sólo han de ser publicos y contener la etiqueta @GodotMethod
  • Con esto, la plantilla se encarga de recopilar esos métodos y exponerlos al Motor.
  • De momento, las señales se siguen definiendo en initSignals()
  • El plugin expone el nombre de la clase como nombre del plugin en getPluginName().
  • También genera automáticamente el archivo gdap para empezar a usar el plugin.

Modificaciones:

Importante, antes de empezar:

  • No actualizar la librería "androidx.appcompat:appcompat:1.5.0"
  • Para ver todos los elementos es aconsejable usar la vista de "Project" en el árbol de carpetas
  • La plantilla ya incluye la librería godot-lib.3.5.3.stable.release.aar en la carpeta app/libs

Renombrar (May+F6 -> Rename):

  1. Crear un nuevo nombre de paquete.
  2. Mover el contenido de 'com.neoofcomstudio.Godot3_5_3_DemoPlugin' al nuevo espacio de nombres.
  3. En caso de ser necesario, corregir el package en la clase y en la anotación
  4. Renombrar nombre de la Clase Principal (DemoPlugin)

Editar

AndroidManifest.xml

  1. Modificar 'android:name="org.godotengine.plugin.v1.[nombre del plugin]"'
  2. Modificar: 'android:value="[nombre del paquete].[nombre de la clase]"'

build.gradle.kts (:app)

  1. Modificar 'namespace = "[nombre del paquete]"'

settings.gradle.kts

  1. rootProject.name = "[nombre del proyecto]"

Si fuera necesario, actualizar: libs/godot-lib.3.5.3.stable.release.aar desde:


Template for Plugin V1 Godot 3.x Android

Preconfigured Template for Creating Android Plugins

Improvements:

  • To define exportable methods, they only need to be public and contain the @GodotMethod annotation.
  • The template automatically collects these methods and exposes them to the Engine.
  • For now, signals are still defined in the initSignals() method.
  • The plugin exposes the class name as the plugin name in getPluginName().
  • Automatically generates the gdap file to start using the plugin right away.

Modifications:

Important, before starting:

  • Do not update the library "androidx.appcompat:appcompat:1.5.0"
  • To see all the elements, it is recommended to use the "Project" view in the folder tree.
  • The template already includes the godot-lib.3.5.3.stable.release.aar library in the app/libs folder.

Rename (Shift+F6 -> Rename):

  1. Create a new package name.
  2. Move the content from 'com.neoofcomstudio.Godot3_5_3_DemoPlugin' to the new namespace.
  3. If necessary, correct the package in the class and in the annotation.
  4. Rename the Main Class (DemoPlugin).

Edit

AndroidManifest.xml

  1. Modify 'android="org.godotengine.plugin.v1.[plugin name]"'
  2. Modify: 'android="[package name].[class name]"'

build.gradle.kts (:app)

  1. Modify 'namespace = "[package name]"'

settings.gradle.kts

  1. rootProject.name = "[project name]"

If necessary, update: libs/godot-lib.3.5.3.stable.release.aar from:

Preconfigured Template for Creating Android Plugins
Improvements:
- To define exportable methods, they only need to be public and contain the @GodotMethod annotation.
- The template automatically collects these methods and exposes them to the Engine.
- For now, signals are still defined in the initSignals() method.
- The plugin exposes the class name as the plugin name in getPluginName().
- Automatically generates the gdap file to start using the plugin right away.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Template for Plugin V1 Godot 3.x Android icon image
MedGasan
Template for Plugin V1 Godot 3.x Android

Preconfigured Template for Creating Android PluginsImprovements:- To define exportable methods, they only need to be public and contain the @GodotMethod annotation.- The template automatically collects these methods and exposes them to the Engine.- For now, signals are still defined in the initSignals() method.- The plugin exposes the class name as the plugin name in getPluginName().- Automatically generates the gdap file to start using the plugin right away.

Supported Engine Version
3.2
Version String
0.9
License Version
Apache-2.0
Support Level
community
Modified Date
10 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers