Publisher | Marks |
---|---|
File size | 191.06kB |
Number of files | 6 |
Latest version | 1 |
Latest release date | 2022-06-30 01:29:15 |
First release date | 2022-04-06 03:44:12 |
Supported Unity versions | 2018.4.2 or higher |
This plugin implements Google Sign In for WebGL, using Google’s new Identity Services API.
FEATURES
- Sign in with Google
- One-tap sign-up
- Automatic sign-in
- You don’t need to touch html/css (although you can if you want to!), even to place the sign in button
- C# interface very similar to official API
KNOWN ISSUES
1- There is a bug with Unity 2020. The UI Canvas button does not match where the google sign in button is placed, or its dimensions, when running on a mobile device. If you must use Unity 2020, you still can, but if you need it to work on a mobile device you will have to place the google sign in button manually using CSS/HTML. Unity 2019, 2021, and 2022 work just fine on desktop and mobile devices according to my tests.
2- If you go fullscreen the google sign in button disappears, or don't show up in the correct spot. There are a couple of ways to deal this:
2a) My plugin supports placing the google sign in button with CSS/HTML, so if you are an HTML/CSS person you can try to make my plugin work with fullscreen yourself (also, if you manage to do it, please reach out to me and let me know how. I'd greatly appreciate it).
2b) Another option is to edit the HTML/CSS so that the game always covers the whole screen even without fullscreen. You don't have to do this if your target is only mobile, since the default template already covers the whole screen for mobile. But if you need to support desktop, there are templates readily available that do this, such as https://github.com/Heelio/UnityResponsiveWebGLTemplate .
2c) Alternatively, simply disable fullscreen. Remove the fullscreen button.
If fullscreen mode is absolutely a must, I suggest you go with option 2b), and after the user signed in and the google sign in button is no longer visible, you can show a button to go fullscreen without issues.
If you like my plugin, please consider leaving a review. It helps me immensely and encourages me to improve the plugin further, and other people to support my work :).