Skip to content

Commit

Permalink
Merge pull request #49 from trollworkout/patch-1
Browse files Browse the repository at this point in the history
Update creating_android_modules.rst
  • Loading branch information
akien-mga committed Mar 2, 2016
2 parents 7b8f8a4 + 501811b commit 2f9c7f7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions reference/creating_android_modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ template follows:

.. code:: java
// namespace is wrong, will eventually change
package com.android.godot;
// package com.android.godot; // for 1.1
package org.godotengine.godot; // for 2.0
public class MySingleton extends Godot.SingletonBase {
Expand Down Expand Up @@ -307,7 +307,15 @@ Using the module
~~~~~~~~~~~~~~~~

To use the module from GDScript, first enable the singleton by adding
the following line to engine.cfg:
the following line to engine.cfg (Godot Engine 2.0 and greater):

::

[android]

modules="org/godotengine/godot/MySingleton"

For Godot Engine 1.1 is

::

Expand Down

0 comments on commit 2f9c7f7

Please sign in to comment.