Skip to content
CW
Navigation

Language

Navigation

Back to Blog
04 Dec 2026 7 min read 26 Views
Rate Control: Ask Players to Rate Your Unity Game

Rate Control: Ask Players to Rate Your Unity Game

Free open-source Unity package that asks players for a review at the right moment: native In-App Review on Google Play and iOS, plus Steam and Mac App Store.

Short answer: Rate Control is a free, MIT-licensed Unity package that decides when to ask a player for a review and opens the right review screen on each store: the native In-App Review on Google Play, SKStoreReviewController on iOS, and the correct deep link on Amazon, Mac App Store, Microsoft Store and Steam. Install it from a Git URL, call Initialize() once and LogEvent() after each good moment. That's it.

The problem: asking at the wrong moment

Reviews move a game up the store, and almost nobody leaves one unless you ask. But when you ask matters more than how:

  • the player just opened the game and a "Rate us!" window jumps on the main menu;
  • the player just lost a level for the fifth time;
  • the game crashed yesterday and today it asks for five stars.

All three are invitations for a one-star review. The right moment is right after something good: a level cleared, a chapter finished, a match won.

On top of that, every store has its own way of opening the review screen, and links that work on one platform break on another (I wrote a whole guide on store URLs because of that).

Why I made it

For years, each of my Green Sauce Games titles carried its own copy of an in-house "RateControl" script. Every game got a slightly different version, with a fix here and a forgotten bug there. Rate Control is that code rewritten once, properly, as a Unity package: one place to fix bugs, and every game benefits.

What Rate Control does

  • Native review where it exists: Google Play In-App Review (no browser, no leaving the game) when com.google.play.review is installed, and the native iOS review sheet.
  • Deep links everywhere else: Amazon Appstore, Mac App Store, Microsoft Store, Steam and the Mac Game Store. On Android it even tells Google Play and Amazon apart by the installer.
  • Smart timing: thresholds for events, sessions, cooldown days, and a reset when you ship a new version.
  • Never at the wrong time: never on startup screens (splash, loading, main menu), never right after a setback, never in the session after a crash, and never while your IRateBlocker says no (tutorial, cutscene, another popup open).
  • Your own UI: a default dialog included, or subclass RateDialog. It never overwrites your texts, so I2 Localization and Unity Localization just work.
  • "More games" button: opens your developer page on the current store.
  • Analytics and cloud save: a funnel of events (queued, shown, rated, later, declined), Sentry breadcrumbs, and the state as JSON to sync between devices.
  • Tools in the Editor: a dashboard, a Setup & Checklist window that audits your project, and an in-game debug overlay (F9).

Installation

In Unity, open Window → Package Manager → + → Add package from git URL and paste:

https://github.com/wagenheimer/UnityRateControl.git

Or add it to Packages/manifest.json:

{
    "dependencies": {
        "com.wagenheimer.ratecontrol": "https://github.com/wagenheimer/UnityRateControl.git"
    }
}

For the native Google Play review, also install the Google Play In-App Review plugin. Google moved those plugins to separate Git repositories; I explain the new URLs in this post about the Google Play plugins for Unity. Rate Control detects the package by itself, with no scripting define to set.

Setting it up in 4 steps

Step 1: create the config and the dialog

Use Tools → Wagenheimer → Rate Control → Quick Actions:

  1. Create Rate Config Asset: adjust the thresholds in the Inspector.
  2. Create Default Dialog Prefab: drag it into the Dialog Prefab field of the config.

Set a unique StorageKeyPrefix (for example, MyPuzzleGame.Rate) so two of your games on the same device don't share counters.

Step 2: fill in the store IDs

Package name for Google Play, the numeric Apple ID for iOS and Mac, the App ID for Steam. If you don't know where to find each one, the store URL guide shows it.

Step 3: initialize once

using UnityEngine;
using Wagenheimer.RateControl;

public class GameBootstrap : MonoBehaviour
{
    [SerializeField] private RateConfig _rateConfig;

    private void Awake()
    {
        // Counts this launch automatically. Don't call LogStart() here.
        RateControl.Initialize(_rateConfig);
    }
}

Step 4: tell it about good and bad moments

public void OnLevelCompleted()
{
    // A positive milestone: this is when the prompt may appear.
    RateControl.LogEvent();
}

public void OnLevelFailed()
{
    // A bad moment: a queued prompt waits for the next LogEvent().
    RateControl.LogSetback();
}

That's the whole integration. The prompt is queued when the thresholds are met and only appears when the scene allows it.

Blocking the prompt during tutorials and popups

If your game has moments when nothing should interrupt the player, implement IRateBlocker:

public class MyGameBootstrap : MonoBehaviour, IRateBlocker
{
    [SerializeField] private RateConfig _config;

    private bool _tutorialActive;
    private int _openModals;

    // Checked every second. Return true when it's safe to show.
    public bool CanShowRate() => !_tutorialActive && _openModals == 0;

    private void Awake()
    {
        RateControl.Initialize(_config, blocker: this);
    }
}

Testing before you ship

This is where most review systems fail: you can't wait 5 sessions and 3 days to see the dialog.

  • Setup & Checklist (Tools → Wagenheimer → Rate Control) audits the config, the prefab, the store IDs (with buttons to open each link) and searches your code for the Initialize() and LogEvent() calls.
  • Debug overlay: press F9 in Play Mode (or tap the RATE DBG button) to see the counters, why the prompt is blocked, and to force it, simulate events or reset everything. It only exists in the Editor and in Development Builds.

Rules from the stores you should know

  • iOS: Apple shows its native review sheet at most 3 times in 365 days per user, and decides by itself whether to show it. That's why the timing matters: you can't waste those chances.
  • Google Play: the In-App Review also has a quota and doesn't tell you whether the player left a review. Google's guidelines also say not to ask opinion questions ("Are you enjoying the game?") before showing the review.
  • Steam, Mac App Store, Microsoft Store: there's no native popup, so the package opens the review page of the store.

Already have an old rate script?

If your project has an older in-house rate system (mine had), the Legacy Migration Assistant scans scenes, prefabs and code, backs everything up and migrates what it can automatically. What's left becomes a checklist, ready to hand to an AI.

Conclusion

Asking for a review is easy. Asking at the right moment, on the right store, without annoying anyone, is the hard part, and that's what Rate Control solves. It's free, open source and on GitHub. If it helps your game, a star on the repo helps me a lot!

FAQ

Is Rate Control free?

Yes. It's open source under the MIT license, including for commercial games.

Which Unity version does it need?

Unity 2021.3 LTS or newer. The default dialog uses TextMeshPro.

Does it work without the Google Play In-App Review plugin?

Yes. Without the plugin, on Android it opens the game's page on the Play Store (market://). With the plugin installed, it uses the native review card automatically.

Why didn't the review window show up on iOS?

Apple decides when to show it and limits it to 3 times a year per user. In development builds it always appears, but in TestFlight it never does. Rate Control falls back to the App Store page when the native request isn't available.

Can I use my own dialog and translations?

Yes. Subclass RateDialog and wire your buttons to OnRateNow, OnRemindLater and OnNoThanks. The package never changes your texts, so any localization system works.

Cezar Wagenheimer

Written by

Cezar Wagenheimer

Share this article

Comments

Have a question, or found an issue with the code? Drop a comment below — I read and reply to every one.

Loading comments…

Leave a comment

Keep exploring

Deploy // Reconectando
Reconectando ao Servidor

Uma nova versão do ecossistema está sendo aplicada. A conexão será restabelecida automaticamente em instantes.