Skip to content

Instantly share code, notes, and snippets.

@wuqxuan
Last active February 5, 2024 07:24
Show Gist options
  • Save wuqxuan/a97b1ffd2879ad6d62bb9b91e1761263 to your computer and use it in GitHub Desktop.
Save wuqxuan/a97b1ffd2879ad6d62bb9b91e1761263 to your computer and use it in GitHub Desktop.
Unity : Adding rate button in my game
void OnRateButtonClick(){
#if UNITY_ANDROID
Application.OpenURL("market://details?id=YOUR_APP_ID");
#elif UNITY_IPHONE
Application.OpenURL("itms-apps://itunes.apple.com/app/idYOUR_APP_ID");
#endif
}
http://www.itorn.net/2016/04/25/unity-adding-rate-button-in-my-game/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment