Unity Sign-in Authentication with Google Firebase 2024
Вставка
- Опубліковано 11 жов 2024
- Hello Friends Welcome to SS GAMING UNITY 3D .
Don't forget to subscribe @unitygaming-3d
In this i will show you how to create a firebase google authentication system in unity. In very simple step and essay Integration so just follow these steps.
Let's start by creating a new Firebase project. This is where we'll set up the authentication and other Firebase services we'll need for our Unity project.
After creating the project, navigate to the "Authentication" section and enable Google Sign-In as one of the sign-in methods.
Now, let's create a new Unity project. This is where we'll be building our application.
The next step is to download and import the Google Sign-In SDK for Unity into your project. This will provide the necessary functionality to integrate Google Sign-In into your Unity app.
In addition to the Google Sign-In SDK, you'll also need to import the Firebase Authentication SDK. This will allow you to handle the sign-in process and user data within your Unity application.
Before we can proceed, you'll need to configure your Unity project with the correct bundle ID and keystore for the Android platform.
To find the SHA keys and fingerprints of your keystore, you can use the following command in the command prompt:
Copy
keytool -list -keystore KeystorePath
This command will provide you with the SHA-1 and SHA-256 fingerprints of your keystore, which you'll need to upload to the Firebase console.
I'd be happy to walk you through the process of finding the SHA keys and fingerprints if you need any assistance.
Once you have the SHA keys, head over to the Firebase console and upload them. This will allow Firebase to recognize and validate the sign-in requests from your Unity application.
Next, you'll need to copy the web client ID from the Firebase console and use it in a script within your Unity project.
After that, you can download the google-services.json file from the Firebase console and import it into your Unity project.
With the google-services.json file in place, you'll need to resolve any Google dependencies in your project.
Now, it's time to create a new script called GoogleSignIn.cs and follow the coding instructions provided.
Once the coding is complete, create a new game object in your Unity scene and attach the GoogleSignIn.cs script to it.
Finally, create a sign-in button in your UI and link it to the sign-in function in your GoogleSignIn.cs script.
Keep in mind that you'll need to test the Google Sign-In functionality on an Android device, as it won't work in the Unity editor.
If you want any service related to unity then feel free contact me on fiverr.
Fiver Profile : www.fiverr.com/salman2033
Script Link :
See In First Comment
If you want this complete project then contact me on any platform Thank you.
Script Link
drive.google.com/file/d/1y2_tevsCUTqfJQyKQMLoSHeVsrf_sGqo/view?usp=sharing
how can i use google authentication for desktop gems?
when i search java in program files then not found java folder and jdk files what can i do?
Sorry for late reply
You can download java and install it after that you will find java folder in your program file
oh my brother, I have followed your steps and copied your script. but the boxes on the firebasemanager script inspector do not appear. what do you think the problem is. I hope you reply to my comment oh my brother.
Jazakallah Khairan Katsiran🙏
restart your project make sure you have the json file in project and make sure you reslove the dependency and then make sure you enter key store and attach lgoin function with button then create built and test it
well before creating on Facebook sign in make sure you provide scrip because as i see in a video you said script link in discretion but not here. and i am try Holl day but still not work. this is my second day ANS ATILL NOT WORK
you need Facebook script are google sign in script
Update the link of google sign in see in comment and facebook script link in discription of facebook login video
make a video on facebook sign in
I appreciate your suggestion! It's viewers like you who inspire me to create more content. Stay tuned for the video on Facebook sign-in!
@@unitygaming-3d subscribed man, I Will be waiting thanks for the reply
Most welcome ❤️