GameStats Unity Sample implementation - #122
Open
wickedcube wants to merge 3 commits into
Open
Conversation
wickedcube
commented
Aug 15, 2026
Contributor
- Added GameStatsController.cs: Implements Google Play Games Services (PlayerGameEvent) stats logging with compile-time
- Wired GameStats.unity UI: Attached the controller to the scene canvas and wired all 8 TMP_Dropdown controls and 4 action buttons (raceCompletedButton, carUpgradedButton, sendProgressionButton, and requestEventsUploadButton)
- Mapped raceCompleted Event: Logs carUsed (string, lowercased for mustang filter matching), rank (long, matching "Races won"), usedNos (bool), and raceTime (double, seconds for "Fastest race").
- Mapped carUpgraded Event: Logs carCharacteristic (string), oldValue (string), newValue (string), and garageLevel (long) matching localization schema types.
- Added Progression & Batch Upload APIs: Implemented currentProgress progression event logging and manual event batch flushing via PlayGamesPlatform.Instance.RequestEventsUpload().
- Imported TMPro default assets
borisf
reviewed
Aug 17, 2026
| col *= 1 - (dot(n, light) * _Diffuse); | ||
| col *= lerp(_Ambient, 1, n.z * n.z); | ||
|
|
||
| //fixed4 reflcol = texCUBE(_Cube, reflect(input.viewDir, -n)); |
Contributor
There was a problem hiding this comment.
Do we need this code? Might worth adding a comment
Contributor
Author
There was a problem hiding this comment.
These are default TMPro imports, users usually have to this on their own anyway
borisf
reviewed
Aug 17, 2026
|
|
||
| 2026-08-12: 1.2.0 - Added Play Games Services (PGS) Game Stats support with PlayerGameEvent recording, GameStats demo scene, and configuration resources. | ||
|
|
||
| 2026-05-22: 1.1.2 - Upgraded to Unity 6.3 LTS and com.unity.purchasing 5.3.0 and changed the Support section to Troubleshooting and added content. |
Contributor
There was a problem hiding this comment.
We need to think about the supoprted Unity verisions, as many games run on 2022 and 2023 if not older
borisf
reviewed
Aug 17, 2026
borisf
left a comment
Contributor
There was a problem hiding this comment.
Added 2 comments, the main one about the Uinty version, as we need to make sure our samples run on all Unity supported versions
Contributor
Author
|
I can keep this PR open till we properly fix PGS plugin dependancies for Older versions |
Contributor
|
Works for me! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.