Giter VIP home page Giter VIP logo

Comments (5)

btco avatar btco commented on June 13, 2024

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

https://developer.android.com/reference/com/google/android/gms/games/Games.html#setGravityForPopups(com.google.android.gms.common.api.GoogleApiClient, int)

from play-games-plugin-for-unity.

noolness avatar noolness commented on June 13, 2024

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.

noolness avatar noolness commented on June 13, 2024

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.

btco avatar btco commented on June 13, 2024

True... I'm reopening this as a feature request!

from play-games-plugin-for-unity.

claywilkinson avatar claywilkinson commented on June 13, 2024

This feature was added in 0.9.37

from play-games-plugin-for-unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.