Unity User Login System Tutorial - Firebase Authentication

  Рет қаралды 113,200

xzippyzachx

xzippyzachx

Күн бұрын

Пікірлер: 543
@xzippyzachx
@xzippyzachx 3 жыл бұрын
*IMPORTANT!!!* These are some common issues and changes that are required since curtain parts of this tutorial are out of date. - The package manager is no longer used to install the Firebase packages and therefor the package resolver will no longer appear when installing and the Firebase packages will not appear in the package manager when installed. If you have issues installing the Firebase packages start by removing any Firebase assets you may have in your project. Download the newest .unitypackage file from this link developers.google.com/unity/archive#firebase_authentication. Then in Unity go to Assets > Import Package > Custom Package. Now import the .unitypackage you downloaded. This will install the Firebase core and Firebase auth packages into your Unity project. - There are also some code changes since this video was recorded. Make sure to check the GitHub repo for the most up-to-date code. If you still have issues feel free to open a help post on my Discord server: discord.gg/7rGAAqC
@andryfiderana4767
@andryfiderana4767 3 жыл бұрын
i did remove all old Firebase package and reinstalling with your second Firebase Video, still it doesnt work ... gotta just read manuals instead of following random youtube vids ffs
@xzippyzachx
@xzippyzachx 3 жыл бұрын
@@andryfiderana4767 Well if you still want help you can join my discord server. Reading the FIrebase docs is also a good idea yes.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
@Politically WOKE Hindus It should but I would download the Firebase .unitypackages from this link instead. The unity package manager no longer works with the Firebase packages
@alfombraxd4910
@alfombraxd4910 3 жыл бұрын
I had this error when importing it: Assembly 'Assets/Firebase/Editor/Firebase.Editor.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? And I fixed it by installing iOS support in Build Settings, even though I only wanted to build it on Android. Also it didn't show in Package Manager, only in Assets.
@lanayaassasin5373
@lanayaassasin5373 3 жыл бұрын
@@alfombraxd4910 We have the same problem. Did you solve it? Please teach me if u solve it
@NixronBarrak
@NixronBarrak 4 жыл бұрын
By far one of the best firebase starter tuts. I gave up on firebase for unity about a year ago because I just couldn't figure it out!
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Glad to hear that! Thanks! Hope I gave you the boost to get the hang of using Firebase with Unity. :p
@joaomarianodasilva2630
@joaomarianodasilva2630 2 жыл бұрын
Obrigado
@tomweiland
@tomweiland 4 жыл бұрын
Nice tutorial! Although I don't need this at the moment, I'll almost certainly be coming back here soon :P
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Thanks Tom! I guess I can call my first tutorial Tom approved :p lol
@tomweiland
@tomweiland 4 жыл бұрын
@@xzippyzachx 😂
@redchilli2563
@redchilli2563 3 жыл бұрын
Actually i am making a chatting application when we select our interest and chat with people based on our interest! This is perfect for the tutorial! :)
@sebastianhurtado979
@sebastianhurtado979 14 күн бұрын
thank you so much it works in 2024. I'm doing my degree project and your video helps me a lot
@xzippyzachx
@xzippyzachx 14 күн бұрын
Glad it helped!
@nicolasmontillamayorga5709
@nicolasmontillamayorga5709 3 жыл бұрын
You're literally saving my thesis, thanks mate
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Nice! :p
@mdwidana
@mdwidana Жыл бұрын
Man, this is still works good in 2023 (and its almost 2024 apparently). And yes, I did read your pinned comment then everything's clear, thank you and have a good day!
@xzippyzachx
@xzippyzachx Жыл бұрын
Glad I could help!
@KrovGame
@KrovGame 4 жыл бұрын
damn , i knew you from a discord , and now i searched for this type of video and found yours , thats cool
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Yeah from Tom's right? Feel free to join my discord too
@Angel3ts
@Angel3ts 6 ай бұрын
I have seen your comment in a video of one indian guy that copied you, thanks for the tutorial, the real OG
@xzippyzachx
@xzippyzachx 6 ай бұрын
Thanks for coming to the real tutorial!
@eunicevalderama1076
@eunicevalderama1076 2 жыл бұрын
OMG! Thank you so much!!! The only login and register system that works after watching tons of tutorial.. Amazing amazing!!!
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Glad it helped!
@gamingguy731
@gamingguy731 3 жыл бұрын
Great tutorial bud! Can't help but keep fantasizing the game "Just Shapes & Beats" in my head 'cause of that BGM lol
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Glad you like it! lol :p
@RugbugRedfern
@RugbugRedfern 4 жыл бұрын
Great tutorial! Thanks for making this. Rule of thumb: with starter projects, make them as simple as possible. This means no fancy UI, no custom fonts, and no blurred backgrounds. Making it as complicated as you did will just make it harder for others to change and use in their own project. edit 7/27/22 sorry for being so critical love u zach
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Yeah I could see that, but I also wanted to make it look good so that viewers would know its a good tutorial.
@RugbugRedfern
@RugbugRedfern 4 жыл бұрын
​@@xzippyzachx In my experience it doesn't really have an impact on the viewers' perception of the tutorial. And it just causes more problems than it helps. I'm just saying its a lot harder to customize and make your own as a user. It can also be more confusing to a beginner because they might not understand how the stylized buttons work of how to use the custom font. Either way, you can do what you want. But in my opinion it does more bad than good.
3 ай бұрын
Can I ask your permission to use your instructions and can I edit an interface for my game programming course project?
@xzippyzachx
@xzippyzachx 3 ай бұрын
Yes, as long as you credit me you can use anything in this tutorial. Thanks for asking!
@MikuTheDev
@MikuTheDev 8 ай бұрын
If u use newer versions of unity the Google file u import has changed it name to firebasedatabase
@TheHalalStudent
@TheHalalStudent 2 жыл бұрын
is this c#? and which coding language do you recommend learning for video games and open world games?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Yes Unity uses C#. It really depends on what engine you plan on using to make video games. I suggest learning the main language the engine uses.
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Let me know what you think of the tutorial style. Do you like it? What can I do better? Thanks for watching!
@michele1055
@michele1055 4 жыл бұрын
I found it kinda slow,... kzbin.info/www/bejne/f6PVlXaVpdCgfa8 (plz don't hate me)
@g5haco
@g5haco 4 жыл бұрын
luved it
@xzippyzachx
@xzippyzachx 4 жыл бұрын
I have seen that video thanks. Was a bit long but I tried to edit it so that it was as fast as possible. Anyway no hate, Thanks
@animegurutamil5504
@animegurutamil5504 4 жыл бұрын
is the game out now my friend
@gekopusoy3308
@gekopusoy3308 4 жыл бұрын
Do you have tutorial on how to connect this authentication login to realtime database?. Im trying to make a money system on a specific authentication account
@kaanapan1183
@kaanapan1183 3 жыл бұрын
This is what I needed to start. Thanks buddy!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
No problem 👍
@biki_02
@biki_02 Жыл бұрын
thanks for the easy to follow tutorial.please do more about this for unity updated version.
@xzippyzachx
@xzippyzachx Жыл бұрын
Glad I could help. Don't have any plans to make more tutorials at this time, but maybe some day
@XOBEP_KHEXTOB
@XOBEP_KHEXTOB 2 жыл бұрын
HELP PLEASE In the c# code it writes me: UIManager isn't existing in this context (186 line)
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Did you make the UIManager script? Join and ask for help on my Discord server if you still need help.
@KellermannTheGrey
@KellermannTheGrey 4 жыл бұрын
Great tutorial, I'd like to see how you do the high score screen using a database
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Noted, I may do a tutorial on using the Firebase database
@povilasca8306
@povilasca8306 4 жыл бұрын
Awesome! Thanks for doing this. Thought it would be much harder
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Glad you like it!
@RelatedM
@RelatedM 4 жыл бұрын
For the multiplayer with dedicated servers you use. If you host a public server, does it need to be portforwarded?
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Yes, if you are hosting a server and you want people outside of your local network to join, you will have to port forward
@RelatedM
@RelatedM 4 жыл бұрын
@@xzippyzachx is there a possibility to host this on like a server. And host multiple ones on 1 server?
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Not really sure what you are asking but I think you might be talking about a room system. Yes it is possible but my game does not use a room system so I don't know how to go about doing it.
@Roadified
@Roadified 3 жыл бұрын
Hey, thanks for tutorial. This worked fine, however when I build to Android, code does not go pass auth.SignInWithEmailAndPasswordAsync function . I get no errors, but it also does nothing.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Have you used a mobile console to see if there are errors on the Android build?
@fahadhasan2242
@fahadhasan2242 3 ай бұрын
Hi, there are some things i notice that are different from yours.. 1) once you downloaded the Firebase Unity SDK (Zip) and you extracted it, I see your file name as 'firebase_unity_sdk_6.15.2' in this video. Mine after extracting only says 'firebase_unity_sdk'.. before extracting, mine was saying 'firebase_unity_sdk_12.1.0.zip' 2) In your video, when importing package and after you clicked 'firebase_unity_sdk', you have either 2 options 'dotnet3' or 'dotnet4'.. For me, I don't get those options and instead, it just directs me to 'FirebaseAuth.unitypackage' like how you do in this video.. the only difference is, i dont have the option to click 'dotnet4' 3) After you clicked 'import' in 'Import Unity Package', it automatically shows you the 'Package Manager Resolver' window.. For me, it doesn't show this window.. As a result, when I hover over to Windows>Package Manager> In Project, I don't see the Firebase Authentication in there at all Pls help, thankss
@xzippyzachx
@xzippyzachx 3 ай бұрын
1) Thats fine its just different naming 2) and 3) The method to install Firebase has changed since I made this tutorial. The Unity package manager is no longer used. Read the instructions in my pinned comment on this video for updated instructions. Also join and make a help post on my Discord server for more help.
@ThriveForBetter
@ThriveForBetter 2 жыл бұрын
Yo ik this is really late but Please help me with this I keep getting these error messages Assets\Scripts\AuthManager.cs(4,16): error CS0234: The type or namespace name 'Auth' does not exist in the namespace 'Firebase' (are you missing an assembly reference?) Assets\Scripts\AuthManager.cs(12,12): error CS0246: The type or namespace name 'FirebaseAuth' could not be found (are you missing a using directive or an assembly reference?) Assets\Scripts\AuthManager.cs(13,12): error CS0246: The type or namespace name 'FirebaseUser' could not be found (are you missing a using directive or an assembly reference?) Please help me I spent my whole day trying to fix this with no luck
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Looks like you didn't install the Firebase SDK correctly. Follow the new steps in the pinned comment.
@toontastic2063
@toontastic2063 2 жыл бұрын
this is perfect , I did it in 30 mins and it s working , thank you so much zippy :D so simple and working love it I ll subscribe your channel :)
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Glad I could help
@kriptosahamusa1216
@kriptosahamusa1216 4 жыл бұрын
Thanks for the video really helpful. Just wonder, what happen next after the player complete the account registration and sign in successfully? How to start the game after the confirmation. Thanks
@xzippyzachx
@xzippyzachx 4 жыл бұрын
That's up to you. After you have logged in you can go to your main menu or change to your game scene. Whatever works for your game. Thanks!
@__MEETTEJANI
@__MEETTEJANI Жыл бұрын
Need help!!! "USE_AUTH_EMULATOR not set" this text is showing on console while registring or login
@xzippyzachx
@xzippyzachx Жыл бұрын
I've never seen that error. Make sure you setup your Firebase project to be correctly linked to your Unity project (First part of the tutorial). You can also ask for help on my Discord server were we can troubleshoot easier.
@Jacky-fb4th
@Jacky-fb4th 3 жыл бұрын
nice tutorial i didnt see those windows > 4:05 and 4:34 but it still work in Window
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yes, please watch my second Firebase tutorial. I re-explain how to install the packages the new way using the package manager.
@Jacky-fb4th
@Jacky-fb4th 3 жыл бұрын
ok
@reez_gd5408
@reez_gd5408 4 жыл бұрын
I WISH I HAVE COMPUTER AND MAKE A GAME I LIKE YOUR VIDEO KEEP UP A GOOD WORK
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Thanks!
@nachohotdawg5634
@nachohotdawg5634 3 жыл бұрын
very clean and accurate! thanks a lot.
@janmenardrodriguez8189
@janmenardrodriguez8189 2 жыл бұрын
my login and register is perfectly working with firebase in unity play mode or simulation but in my actual build application its not working, what do you think is the problem? thank youu
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Try building as 64bit
@janmenardrodriguez8189
@janmenardrodriguez8189 2 жыл бұрын
@@xzippyzachx good day, I'm building Android app and I see no 64bit in build option just 32 bit, 16 bit, 32 bit and half reso. I'm always on 32 bit when build, still not working sir. Tried switching to windows build and it worked fine, however in android app it still doesn't work.
@xzippyzachx
@xzippyzachx 2 жыл бұрын
@@janmenardrodriguez8189 Since the issue is only happening in the android build I suggest finding a mobile console on the Unity asset store so you can see if any errors are being thrown in the actual android build of your game. There are a few free mobile consoles on the Unity asset store. Join my Discord and ask for further help there.
@5JurassicAlexandruRotaru
@5JurassicAlexandruRotaru 2 ай бұрын
Hey dude. If i sign an app up with an identifier, then realize that identifier is incorrect, do i need to reinstall everything? It's urgent!
@xzippyzachx
@xzippyzachx 2 ай бұрын
You should just need to add the new app or correct identifier in the Firebase dashboard > Project settings > General > Your apps.
@fahadhasan2242
@fahadhasan2242 4 ай бұрын
Hi, thanks for this video.. I'm creating a login and registration for Students to take their MCQ test (they'll have to login and upon successful login, they'll be directed to the test database) So currently I have 2 respective groups: Admin (Teachers) and Trainees (Students) For the Admin, they will have a login button and registration button. I shld be able to follow your video for that without a problem. But however for the trainee scene, I only need to have a login button. So that means that if they are new and need to create a new account or reset password, it is the Admin's responsibility to do it for them. Can I get your help with this and what would be different? Based on your video
@xzippyzachx
@xzippyzachx 4 ай бұрын
I would only have the login option within Unity. For the account registration you could just use the Firebase dashboard to register Trainees. Otherwise this would require some significant changes. Open a help post on my Discord server if you want more help.
@fahadhasan2242
@fahadhasan2242 4 ай бұрын
@@xzippyzachx sure, I'm working along your video rn and it would take me some time to get there
@edwardjoseb.babasa6162
@edwardjoseb.babasa6162 2 жыл бұрын
Assembly 'Assets/Firebase/Editor/Firebase.Editor.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. Assembly 'Assets/ExternalDependencyManager/Editor/1.2.169/Google.IOSResolver.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. can you help me with these errors?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Add the IOS build module to your Unity version. Join and ask for help on my Discord server for further help.
@AYANKHAN-eh6ve
@AYANKHAN-eh6ve 2 жыл бұрын
all things went well not code error nothing.. but after clicking login it says " null object reference does not set to an instance of and object AuthManager+d_10.MoveNext() (at Assets/Self Scripts/AuthManager.cs:59" in the console.. plzzzz help
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Try deleting and re-downloading your google-services.json file. You can also join my Discord server and ask for help there.
@viveksehgal9167
@viveksehgal9167 3 жыл бұрын
Great tutorial. Can you please make a tutorial on user verification through mail. It will be very helpful. Thanks in advance.
@Pa3BeDka_Gaming
@Pa3BeDka_Gaming Жыл бұрын
Could you tell me how the game should run? In which part of the code should I insert this and how exactly should it look?
@xzippyzachx
@xzippyzachx Жыл бұрын
This will really depend on how the code is setup for your game, but in general you would insert your code to continue into the game where we set *confirmLoginText.text = "Logged In";*
@mertozcelik484
@mertozcelik484 3 жыл бұрын
Thank you for this tutorial.I have a question.How can i make sure if user stays connected during the game? I mean all details lost after the authentication .How can we detect which user plays the game?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Sry for the late response, KZbin flagged your comment. Are you changing scenes after you log in. If so you need to make sure to transfer the user variable data between scenes. Join my Discord if you still need help! :p
@mertozcelik484
@mertozcelik484 3 жыл бұрын
@@xzippyzachx Thank you :) I created a scriptableobject that hold a name string as a temporary solution.
@anasbah1585
@anasbah1585 2 жыл бұрын
your video is very cool but we can do this in a build for windows and not in android or apple??
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Yes, Firebase isn't officially supported for windows builds but it still works on windows builds
@anasbah1585
@anasbah1585 2 жыл бұрын
@@xzippyzachx so, we have to tick on which things ?? android or apple ?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
@@anasbah1585 Select the Android option if you want to build for Desktop
@magicamecil
@magicamecil 2 жыл бұрын
Thank you very much!! This Tutorial is so amazing
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Glad it was helpful!
@jorgedomenechjara7181
@jorgedomenechjara7181 3 жыл бұрын
Nice tutorial. I have a problem. I follow all the steps and it works fine in the editor, but when I build it on PC, I run it and it doesn't work.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Make sure to build it as 64 bit
@jorgedomenechjara7181
@jorgedomenechjara7181 3 жыл бұрын
@@xzippyzachx Thanks that was the problem
@TheOffGridFamily
@TheOffGridFamily 3 жыл бұрын
Great Tutorial. Keep up the good work
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Thanks!
@krabbyPatty824
@krabbyPatty824 2 жыл бұрын
Hello. Thank you so much for making this video. I had a question though. Is this a good way to securely store data? Is it easy for players to hack? Thank you!
@xzippyzachx
@xzippyzachx 2 жыл бұрын
If you are going to be storing data in the Firebase database the security depends on how you setup your Firebase rules. So I suggest reading the Firebase documentation about Firebase rules if you want to make sure your data is secure.
@therosvaldas
@therosvaldas 3 жыл бұрын
Hi. im having problems with 6:58 part. I did exacly as you said in the totorial but when I try to add the script it says that script class cannot be found. do you know what the problem could be?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
The script class could maybe not match the file name. Please join my discord server if you need further help :p
@everlastingmedia
@everlastingmedia Жыл бұрын
Solid tut. Any problems I encountered were due to ID10T errors.
@xzippyzachx
@xzippyzachx Жыл бұрын
Glad I could help! :p
@minimumware
@minimumware 11 ай бұрын
I have followed your pinned post but I'm receiving an error. Is it okay to proceed? I'm on windows btw Assembly 'Assets/Firebase/Editor/Firebase.Editor.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.
@xzippyzachx
@xzippyzachx 11 ай бұрын
These errors can be resolved by installing the IOS build module via the Unity Hub for your version of Unity. Even if you aren't building for IOS it for some reason complains that its not installed. You can also ask for help on my Discord server if you still have issues.
@minimumware
@minimumware 11 ай бұрын
@@xzippyzachx Thank you, I finished the tutorial! I'm onto the next one.
@aviationgeek2624
@aviationgeek2624 2 жыл бұрын
the package does not show up in the package manager. Tried several times.
@xzippyzachx
@xzippyzachx 2 жыл бұрын
That's correct. The Unity package manger is no longer used by the Firebase SDK so it will not appear in it. As long as you see the Firebase folders in your Assets folder you should be ok.
@bjorn84
@bjorn84 3 жыл бұрын
Hi, love the video but I have a problem installing Firebase, I follow the instructions but when I import the package no Package Manager Resolver pops up ( @4:06 ) also nothing else appears in Package Manager In-Project packages list, I tried installing different versions of unity but nothing. I don't know what to do. Any idea?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
I re explain how to install the Firebase packages a better way in my second Firebase video on my channel. Go give it a watch. Make sure to remove all the old Firebase files you may have installed this tutorial from your project before re installing the new way. :p
@bjorn84
@bjorn84 3 жыл бұрын
hey! thanks for helping, I followed the second video but "Packages: My Registries" doesn't appear for me, just "Unity Registry/In Project/My Assets and Built-In", I tried also with a new project, nothing. The url and the scope are correct. I also tried to reinstall unity, just in case. (I'm using unity 2020.2.1f1) I also checked the manifest and it's correct.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
@@bjorn84 Ah there is a Unity bug in 2020.2 where `My Registries` wont show. You have to add them manually via the manifest.json file in your /Packages folder. Join my discord server for help.
@bjorn84
@bjorn84 3 жыл бұрын
@@xzippyzachx oooooooooh thanks! I just copied the references from the manifest of one of your projects and now it works like a charm :D thanks a lot :D
@javad2906
@javad2906 Жыл бұрын
that was a nice starting but i had problem after importing firebase SDK before importing sdk i can make a keystore or set a keystore fore project but after importing the sdk unity says wrong password or the path of keystore is wrong but I'm sure both are correct
@isabelly6280
@isabelly6280 8 ай бұрын
firebase autentication doesnt appear in package manager and i tried everything to appear and it didnt work :(
@xzippyzachx
@xzippyzachx 8 ай бұрын
Read the pinned comment on this video :)
@zainkashif3269
@zainkashif3269 3 жыл бұрын
I'm getting this error and when i try to call functions in unity for buttons i'm also not getting the proper functions in authmanager would u plz help me with that. Assets\Scripts\AuthManager.cs(15,12): error CS0246: The type or namespace name 'Firebaseuser' could not be found (are you missing a using directive or an assembly reference?)
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Its best to ask for help over on my Discord channel. Feel free to join and ask for help in the help channel.
@cromisdev
@cromisdev 3 жыл бұрын
Best video ever about this topic
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Glad I could help!
@BrettClimb
@BrettClimb Жыл бұрын
Thanks, this is very helpful! I'm wondering what the next step is in terms of using the fact that the user is logged in. Does Firebase send the user some kind of authentication token once they have logged in, which can be used to verify their identity on a custom server? I'm imagining that the front-end temporarily stores that auth token, sends it to my Node Express API, my API then sends the token to Firebase to verify that it's real, and then I can provide the user with access to the back-end services that they have purchased. Does that sound right or am I confused about this process?
@xzippyzachx
@xzippyzachx Жыл бұрын
That sounds exactly correct. I would look through the Firebase documentation to find specifics on how you can do this. You can also ask questions on my Discord and I will try to assist where I can.
@davidfu8174
@davidfu8174 3 жыл бұрын
Worked Perfectly. Thanks!!!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Glad it helped
@harudesudesu6692
@harudesudesu6692 3 жыл бұрын
This is nice tutorial. i tried it on my project but when i build it for android log in and register is not working. Sorry for my bad english
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Have you tried what I mentioned in the pinned comment on this video? If that doesn't work then the next step would be to get a developer console running on your mobile device to see if there are any errors. You can also join my Discord and ask for help there.
@harudesudesu6692
@harudesudesu6692 3 жыл бұрын
@@xzippyzachx Thank you for the reply, I already fixed it Thank you
@chaiseven1562
@chaiseven1562 4 жыл бұрын
Thk for this video.Im new unity user here it help me a lot bro! Can u make a video share how to build data base like save score with using firebase? Thk!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
New video just posted!
@qaz431220
@qaz431220 3 жыл бұрын
I'm not sure why i can't import all FirebaseAuth into my unity so that it doesn't show on my Package Manager
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Please read the pinned comment on the video
@qaz431220
@qaz431220 3 жыл бұрын
@@xzippyzachx sorry and thanks
@ozgurbaltac3638
@ozgurbaltac3638 2 жыл бұрын
I can not connect firebase to unity.I tried a lot but it does not work.I tried the package in the description also but it didn't work either.Could you help me ? It's urgent.I have to turn in my homework by tomorrow.
@xzippyzachx
@xzippyzachx 2 жыл бұрын
If you are struggling to add the Firebase SDK to Unity then I recommend asking for help on my Discord server
@ozgurbaltac3638
@ozgurbaltac3638 2 жыл бұрын
@@xzippyzachx Yes, I made a PC game but is Firebase only suitable for mobile games ? (Android,iOS) ?
@jay_chromosome7172
@jay_chromosome7172 3 жыл бұрын
Hey man great video, everything went well after following the tutorial now the problem is how do I change the scene only when the user successfully signs in. FYI I subscribed to your channel, hopefully more great up coming content.😉
@xzippyzachx
@xzippyzachx 3 жыл бұрын
I think you watched my second video on using Firebase Database. I explain how to change to another UI screen when you log in. You can just change it to go to another scene. Keep in mind that if you change scenes without bringing the FirebaseManager object to the next scene you can not do any Firebase functions in the other scene.
@jay_chromosome7172
@jay_chromosome7172 3 жыл бұрын
@@xzippyzachx ayt thanks... Will implement that
@Ermelious
@Ermelious 2 жыл бұрын
How expensive is it on Firebase if let's say it's used for a multiplayer game? Something like fortnite. I'm guessing they only use database to store player information like items, in-game currency and score and this might not be called as frequently as those real-time action stuffs like handing player movement correct? We would only be making calls to firebase when the game ends, during login, and when purchasing / trading items. The Free firebase tier can store only 1GB of data and I believe there are some other limits like the calls per month. Based on the above scenario, will it wipe out 1GB of data per month making the Free tier insufficient? How many players do you think the free tier can handle? I've search some threads on reddit but can't seem to find any relevant discussions yet. If its going to be expensive are there alternatives to firebase? What about AWS? Or is there any free offerings? I guess if it turns out that the Free version maxes out at 100-1000 players then, maybe for the sake of trouble down the line, some would just be better off linking it to a local database with sql or something similar when starting out as that should offer at least an option to have it hosted by multiple servers in future if required?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
The potential cost is a hard question to answer. Its really hard to estimate because no one really knows exactly how much bandwidth their application will use. Which ever route you go it will cost you money at some point but as you said going a custom SQL database solution might be the smarter option so you can switch hosting providers in the future.
@JustinMurphyy
@JustinMurphyy 3 жыл бұрын
hey how would i make it where when you login it would tpa you to a scene
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Change the scene after the login is successful. You can trace in the code where I am debug logging that you have been logged in. That's then where you would change the scene.
@gemini1q
@gemini1q 3 жыл бұрын
Hello, I switched my platform to WebGL, can we use login screen on that platform? Thank you...
@xzippyzachx
@xzippyzachx 3 жыл бұрын
I don't think Firebase supports WebGL builds using Unity unfortunately. I would read the Firebase docs to make sure though as I may be wrong.
@vinayakpandey2643
@vinayakpandey2643 Жыл бұрын
Hello sir, I was making authentication form for a game I have developed. My problem is there are two forms being made and I am not able to achieve final result like yours in which there are separate forms for login and register and both forms can be accessed by help of the 'Register' and 'back' button respectively. In your video, when login form is opened, Register is temporarily inactive and vice versa. I am not able to achieve that result. Waiting for your response
@xzippyzachx
@xzippyzachx Жыл бұрын
The UIManager script handles all the UI show/hide logic. I suggest looking at that script in my example code. Make sure to check out the finished project on my GitHub.
@vinayakpandey2643
@vinayakpandey2643 Жыл бұрын
@@xzippyzachx sir, thanks for your help. I sorted out that problem. There is an error arising in console. It says : (NullReferenceException: Object reference not set to an instance of an object Unity.PlasticSCM.Editor.PlasticWindow.ClosePlasticWindow (Unity.PlasticSCM.Editor.PlasticWindow window) (at Library/PackageCache/com.unity.collab-proxy@1.17.6/Editor/PlasticSCM/PlasticWindow.cs:1043) Unity.PlasticSCM.Editor.PlasticWindow.OnDisable () (at Library/PackageCache/com.unity.collab-proxy@1.17.6/Editor/PlasticSCM/PlasticWindow.cs:183) I can't understand the cause of this error
@theeyeofthesky4974
@theeyeofthesky4974 4 жыл бұрын
Hi, I am a bit stuck on an error because in the unity editor the login and register system work perfectly fine, but when I built my game and open it as an application the development console throws me an error saying: DllNotFoundException: FirebaseCppApp-6_15_2 , if I ignore the error and continue to login when I press sign in it throws me another error saying: NullReferenceException: Object reference not set to an instance of an object, and after that nothing happens. So yeah I've been fighting this error for about a day and thought maybe if I comment someone might help me.
@xzippyzachx
@xzippyzachx 4 жыл бұрын
Try and build your game for 64bit. Also join my discord server if you want my help to troubleshoot further.
@theeyeofthesky4974
@theeyeofthesky4974 4 жыл бұрын
Thanks This solution actually fixed my problem
@Commander_Wolf32
@Commander_Wolf32 4 жыл бұрын
@@xzippyzachx thanks, ran into the same problem today and after many hours of googling decided to come back here to see if anyone else had the same problem
@infinitiSscripts
@infinitiSscripts 2 жыл бұрын
good tutorial but i keep getting this error when clicking the login button NullReferenceException: Object reference not set to an instance of an object AuthManager+d__16.MoveNext () (at Assets/Assets/Scripts/AuthManager.cs:73)
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Try deleting and re-downloading your google-services.json file. Ask for help on my Discord if this doesn't work.
@infinitiSscripts
@infinitiSscripts 2 жыл бұрын
@@xzippyzachx Thankyou had to rename google-services.json file.
@SolarSoftMedia
@SolarSoftMedia 6 ай бұрын
Don't delete "obsolete" files if prompted. I did this and broke it. After reimporting the deleted files, it works again.
@teoprod
@teoprod 2 жыл бұрын
Loved it man! Is there a way where the user only gets logged in successfully if the owner of the firebase (in the case, me) accepts the login?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Thanks! You would need to setup some sort of request and accept system using the Firebase database.
@teoprod
@teoprod 2 жыл бұрын
@@xzippyzachx Ohh I see! Do you know if Firebase does have a function to do it?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
@@teoprod No there is no easy built in method. You would have to build it yourself.
@time6385
@time6385 2 жыл бұрын
sir I have question my firebase not working on mobile when I build my project to .apk, but it working on editor in unity on pc. How to fix it. Thank for answer
@xzippyzachx
@xzippyzachx 2 жыл бұрын
I suggest getting a mobile console so that you can see any possible errors that are being thrown on mobile
@time6385
@time6385 2 жыл бұрын
@@xzippyzachx I already solve it. If I have question again, I will join your discord to ask for help. Thank for reply
@CryptoKaiwen
@CryptoKaiwen Жыл бұрын
I get an error saying its something to do with iOS. I thought we downloaded for Android?
@xzippyzachx
@xzippyzachx Жыл бұрын
You may still need to have the IOS build module installed for your Unity version. Even if you aren't going to build for IOS
@Gtclanagar
@Gtclanagar 3 жыл бұрын
Would this work with IOS and Android as well? Or do I need to do certain things to get this to work? Thanks for the Tutorial!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
You should just have to change the project type in the Firebase console
@Gtclanagar
@Gtclanagar 3 жыл бұрын
xzippyzachx thanks!
@lokeshkumar-pe9wf
@lokeshkumar-pe9wf 3 жыл бұрын
wow you are awesome man please keep doing many more thank you
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Thanks, will do!
@365fun_public
@365fun_public 4 жыл бұрын
thank u :) Plz more firebase tutorial.
@eboatwright_
@eboatwright_ 3 жыл бұрын
Thank you for this! :D
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Your welcome! :p
@sowmitrabanerjee6168
@sowmitrabanerjee6168 Жыл бұрын
Brother, I've faced a problem... I'm using 2021.3.25f1 version... It's saying that Cannot Implicitly convert type Firebase.Auth.AuthResult to Firebase.Auth.FirebaseUser
@xzippyzachx
@xzippyzachx Жыл бұрын
Try "User = LoginTask.Result.User;" instead. You can also ask for help on my Discord server.
@o.pedrobenetti
@o.pedrobenetti Жыл бұрын
I have the same problem, did you manage to solve it?
@o.pedrobenetti
@o.pedrobenetti Жыл бұрын
@@xzippyzachx doesn't work for me
@xzippyzachx
@xzippyzachx Жыл бұрын
@@o.pedrobenetti Please ask for further help on my Discord server
@misal-isahabe5281
@misal-isahabe5281 3 жыл бұрын
I have a issue, it didn't accept this code: user = logintask.result and user = registertask.result ; why? Should I download something?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
I am not really sure what your issue is? You need to install the Firebase Auth packages. Read the pinned comment on this video for new installation instructions. You can also ask for help on my Discord server.
@misal-isahabe5281
@misal-isahabe5281 3 жыл бұрын
@@xzippyzachx Thanks, I didn't read your pinned text.it can be benefit about it.
@eddyrouhana4965
@eddyrouhana4965 3 жыл бұрын
Assembly 'Assets/Firebase/Editor/Firebase.Editor.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. @xzippyzachx this error popped uo after i installed and added it to unity
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Install the Unity ios build module
@TiimedArts
@TiimedArts 4 жыл бұрын
Im not sure why, but my register function is loading forever instead of sending an error message... copyed everything
@xzippyzachx
@xzippyzachx 4 жыл бұрын
I'm not sure what the problem would be. Please join my discord server and ask for help in the help channel. We can have a look at the problem. Thanks :p
@TiimedArts
@TiimedArts 4 жыл бұрын
@@xzippyzachx will do that now!
@MilindP
@MilindP 3 жыл бұрын
Will this method also remember the user and does not ask for login credentials again?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yes Firebase automatically auto logs in. You can do a simple check to see if the user variable is null when the game starts and if its not null then skip the login screen. Ask on my Discord server if you need help.
@ms-9
@ms-9 3 жыл бұрын
Hi, thank you for the amazing tutorial. Sadly, I get two errors and can't register new users :( Maybe you know what causes this? 1. "Database URL not set in the Firebase config." 2. "Failed to register task with System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> Firebase.FirebaseException: An internal error has occurred. "
@xzippyzachx
@xzippyzachx 3 жыл бұрын
I think you are missing your google-services.json file. Please join my Discord server and ask for help in the help channel.
@ms-9
@ms-9 3 жыл бұрын
@@xzippyzachx I thought so too, so I reimported the google-services.json file but it doesn't change anything sadly. Thanks though. I'll ask on discord
@ms-9
@ms-9 3 жыл бұрын
Fixed. The e-mail signing method was disabled in the console, my bad sorry :0 Thanks for the concise tutorial, I really appreciate the editing and how it's well formatted with time stamps and all
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Glad I could help
@nachohotdawg5634
@nachohotdawg5634 3 жыл бұрын
How can I link the user to his own profile and not to other user profile after the log in is succesful? thank you.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Are you talking about user data? If so then go watch my second tutorial on that topic.
@qingyufeng3912
@qingyufeng3912 2 жыл бұрын
Hi I have some questions regarding the DBreference = FirebaseDatabase.getInstance().getReference(). When I call this in my Awake() function, it does not execute and skip the rest of code. Any kind soul know how to solve it?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
This may mean that your google-services.json file is broken. I would try to delete and re-download it to see if issues are fixed. Also join and ask for help on my Discord if issues still persist.
@qingyufeng3912
@qingyufeng3912 2 жыл бұрын
@@xzippyzachx Hi thank you so much for your reply. I tried to join your discord but actually it always directs me to the page that verify I am a human...
@qingyufeng3912
@qingyufeng3912 2 жыл бұрын
@@xzippyzachx I managed to join your Discord, thank you!
@CryptoKaiwen
@CryptoKaiwen Жыл бұрын
Assembly 'Assets/ExternalDependencyManager/Editor/1.2.175/Google.IOSResolver.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.
@xzippyzachx
@xzippyzachx Жыл бұрын
I answered your other comment, but feel free to ask for help on my Discord server if you still have issues
@arck-yt
@arck-yt 4 жыл бұрын
its giving the error that the email is badly formatted help please!!!!
@xzippyzachx
@xzippyzachx 4 жыл бұрын
That sounds like you aren't using a properly formatted email address. Feel free to join my discord server if you need more help
@samsaraAI2025
@samsaraAI2025 3 жыл бұрын
It seems to work, but I am having this error in red: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? any idea what can be wrong?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
You need to import the ios build module (Even if you don't need to build for ios) to fix that error. If you need help ask on my Discord server
@lanayaassasin5373
@lanayaassasin5373 3 жыл бұрын
@@xzippyzachx same problem but I did your advise by adding module and its ok now but. Package Manager Resolver doesnt show up? why?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
@@lanayaassasin5373 Firebase no longer uses the package manager. Its not meant to show up anymore. it should be fine as long as the Firebase files are in your project
@elmalili619
@elmalili619 3 жыл бұрын
Hi i wana ask you what do you mean about the defaultinstance with is associated with the default app i really need to know plz answer and thanks
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Not really sure what you are asking. Join my discord server if you need help or have questions.
@Briskjungle
@Briskjungle 3 жыл бұрын
would love to see a series on cloud fire store
@xzippyzachx
@xzippyzachx 3 жыл бұрын
I haven't used it yet. Maybe I will if I get around to trying it out
@davidsanchezcallizo9552
@davidsanchezcallizo9552 3 жыл бұрын
Hi, i cant use the library -> using Firebase.Unity.Editor; Someone know why? i was looking many tutorials and followed the guide but nothing.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yes, in newer versions of Firebase this is no longer needed. Take a look at the GitHub code. There have been slight tweaks. Ask in my discord if you still have issues. Thanks
@unicorps8996
@unicorps8996 6 ай бұрын
help me... unity cannot implicitly convert type firebase.auth.authresult to firebase.auth.firebaseuser
@xzippyzachx
@xzippyzachx 6 ай бұрын
Check the GitHub repo for the latest updated code
@unicorps8996
@unicorps8996 6 ай бұрын
@@xzippyzachx thanks..it's work
@nathaniellabrador6313
@nathaniellabrador6313 2 жыл бұрын
Is the data will saved on firebase even if I deploy my game in web?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
I am not sure if Firebase works with the Unity WebGL build. I haven't tried it.
@everlastingmedia
@everlastingmedia Жыл бұрын
I may have seen wrong, but did you take the mac bundle identifier and put it in the android slot on Firebase? O_O
@xzippyzachx
@xzippyzachx Жыл бұрын
Yes that's correct
@KevStuff25
@KevStuff25 Жыл бұрын
Can you teach me like warning text cuz I was confused about like warning login and sign up
@xzippyzachx
@xzippyzachx Жыл бұрын
You can always download the complete project to see how the warning text is setup or you can join my Discord server and ask for help there
@KevStuff25
@KevStuff25 Жыл бұрын
@@xzippyzachx also can you make forgot password and verfy email too
@pluras1267
@pluras1267 3 жыл бұрын
If I want to make auth. for both facebook and google. Do I just do it the same way as he did in the video?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
There are different methods for authentication with Facebook and Google. I would suggest reading the Firebase docs to figure out how to use them. I haven't used them myself. Good luck!
@troyfitzgerald9155
@troyfitzgerald9155 3 жыл бұрын
Hi, I've copied everything in the tutorial but when i try register a user, nothing happens and doesnt return to the login screen, I've tried to join the discord but I just get an invalid link. Would really appreciate a response
@troyfitzgerald9155
@troyfitzgerald9155 3 жыл бұрын
When i click register, i get the log error that the passwords do not match when they definitely do
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Something must be wrong. Feel free to join my Discord server to ask for help
@kevingaspar5865
@kevingaspar5865 3 жыл бұрын
im using Unity 2020.2.2f1 (Windows) Wenn ich start de Applycation in Unity i become the Massage "URL not set in the Firebase config"
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Seems like you need to re download the google-services.json file. If you still have issues join my discord and ask for help
@swapnacd9615
@swapnacd9615 3 жыл бұрын
Hey can you help me in processing of how to make profile page on the game that we created so if you make that tortorial I will make you a partner of game named reality
@yuransoares5647
@yuransoares5647 3 жыл бұрын
Didn't work on my android phone. My Unity version:2020.2. This is what i did to fix: ->Rename Assets/Plugins/Android/Firebase directory, to Assets/Plugins/Android/Firebase.androidlib ->It may write some sdk minimum version on android.manifest, delete that line and save the manifest
@alexbove9143
@alexbove9143 3 жыл бұрын
When I first open the project I get the error message that a meta data file exists but its asset can't be found? Is this why it is then not working? Thank you for any help provided
@alexbove9143
@alexbove9143 3 жыл бұрын
Additionally I never get any of the extra pop ups when installing the package and it then never shows up in the package manager. I really don't understand what i'm doing wrong
@xzippyzachx
@xzippyzachx 3 жыл бұрын
The package did not install correctly then. Please watch my second Firebase video where I re explain how to import the Firebase packages using the package manager. kzbin.info/www/bejne/fZvcgpynZ5iZeM0
@TiimedArts
@TiimedArts 4 жыл бұрын
Is there a way to send an email with activating the account before you actually can log in?
@xzippyzachx
@xzippyzachx 4 жыл бұрын
There may be, read into the Firebase docs. There should be a section on email confirmation
@TiimedArts
@TiimedArts 4 жыл бұрын
@@xzippyzachx i will do that, thank you :)
@alexlim9336
@alexlim9336 Жыл бұрын
Im not sure why my android package name is not working :(
@xzippyzachx
@xzippyzachx Жыл бұрын
Make sure to read the pinned comment for updated install instructions
Unity User Data & Scoreboard Tutorial - Firebase Realtime Database
25:11
Login and register system in Unity (UI) - Unity UI tutorial
10:09
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 115 МЛН
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 18 МЛН
MP3 CDs: a hybrid "format" that never existed, yet was surprisingly common
34:18
Technology Connections
Рет қаралды 134 М.
Firebase Authentication In Unity | User Login & Register | Tutorial #1
20:05
Unity Sign-in Authentication with Google Firebase 2024
16:47
I Made a Horror Game Using ChatGPT
8:47
contenter
Рет қаралды 8 М.
9 EASY Steps to create a multiplayer game with Unity & Photon - Tutorial
15:51
Firebase & Unity | Login & Register | Advanced Account Tutorial #1
12:56
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 115 МЛН