Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.29 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.29 KB

godot-rateit

Platform Platform Godot Engine LICENSE

Allows you to open the google play or app store on your application in order to rate it.

Usage

Loading the module for Android (iOS auto-loads it)

Edit engine.cfg and add an android part as following:

[android]
modules="org/godotengine/godot/GodotRateIt"

Initializing the module using GDScript

Here is an example

extends Node

# Rate module
var godot_rateit

func _ready():
  if(Engine.has_singleton("GodotRateIt")):
    godot_rateit = Engine.get_singleton('GodotRateIt')

func rate_it():
  if godot_rateit != null:
    godot_rateit.ask_and_rate('Rate?', 'Yes', 'No', '' if OS.get_name() == 'Android' else '1234567890')

License

See LICENSE file