Comments (5)
The plugin doesn't expose a way to do this, but it can be done by modifying the plugin code. What you want to do is call Games.setGravityForPopups right after the user signs in, probably from AndroidClient.cs
from play-games-plugin-for-unity.
I was able to do it, by calling the native Java APIs directly. I think this might be a feature people commonly need though. Depending on the type of game, having an achievement on the top (rather than the bottom) could make the game unplayable. I have a workaround I used I can post here, just for other people to reference if it can't be added as a feature though.
from play-games-plugin-for-unity.
In AndroidClient.cs, I added the following line:
mGHManager.CallGmsApi("games.Games", null, "setGravityForPopups", (int)(80 | 1));
This made it so I could display the achievements on the bottom of the screen. It's a real hack job, but it was the last thing I needed to ship my game, and it was the easiest way to make sure the position was changed. Like I said it's okay if moving the popup or hiding the popup isn't a feature. It's just that I think it's a very common thing that people want to do.
from play-games-plugin-for-unity.
True... I'm reopening this as a feature request!
from play-games-plugin-for-unity.
This feature was added in 0.9.37
from play-games-plugin-for-unity.
Related Issues (20)
- Gradle build failed 403 on amazon .pom HOT 2
- Error when building for IOS even with NO_GPGS
- [Bug] APK crashes after using PlayGamesSignIn in Unity Editor Version 2023.2.0f1 HOT 2
- Sign-In Dialog is shown every time .Authenticate is called when Google Play Games App is not installed
- Unity authentication won´t work
- Request plugin for godot 4
- Detect username change in Play Games app
- When will the version with the recall API be distributed?
- AppUpdateRequest is never Done after user minimizes app and reopens it through app drawer
- Unity Editor 2022.3.16f1 (LTS) project build Failed HOT 7
- play-games-pulugin-for-unity
- Bug reports
- Remove Plugin Completely
- Known vulnerability detected
- Unity splash Auto Login
- [Bug] Non-secure network connections error
- How would this plugin behave when granular permissions of Google OAuth is enabled? HOT 2
- Can someone share sample for google play login? HOT 2
- Authentication failed. Prompt shows 400 Bad Request
- Sign in doesn't work. Returning an error code. HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-games-plugin-for-unity.