Тёмный

Unity User Login System Tutorial - Firebase Authentication 

xzippyzachx
Подписаться 26 тыс.
Просмотров 112 тыс.
50% 1

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 540   
@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 😂
@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,... ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-IrrdC_pkmGM.html (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
@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! :)
@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
@nicolasmontillamayorga5709
@nicolasmontillamayorga5709 3 года назад
You're literally saving my thesis, thanks mate
@xzippyzachx
@xzippyzachx 3 года назад
Nice! :p
@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
@Angel3ts
@Angel3ts 5 месяцев назад
I have seen your comment in a video of one indian guy that copied you, thanks for the tutorial, the real OG
@xzippyzachx
@xzippyzachx 5 месяцев назад
Thanks for coming to the real tutorial!
@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.
@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!
@mdwidana
@mdwidana 11 месяцев назад
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 11 месяцев назад
Glad I could help!
@kaanapan1183
@kaanapan1183 3 года назад
This is what I needed to start. Thanks buddy!
@xzippyzachx
@xzippyzachx 3 года назад
No problem 👍
@GreatAnimation
@GreatAnimation 3 года назад
i really like this tutorial
@xzippyzachx
@xzippyzachx 3 года назад
Thanks! Glad you like it!
@nachohotdawg5634
@nachohotdawg5634 3 года назад
very clean and accurate! thanks a lot.
@TheOffGridFamily
@TheOffGridFamily 3 года назад
Great Tutorial. Keep up the good work
@xzippyzachx
@xzippyzachx 3 года назад
Thanks!
@eboatwright_
@eboatwright_ 3 года назад
Thank you for this! :D
@xzippyzachx
@xzippyzachx 3 года назад
Your welcome! :p
@povilasca8306
@povilasca8306 4 года назад
Awesome! Thanks for doing this. Thought it would be much harder
@xzippyzachx
@xzippyzachx 4 года назад
Glad you like it!
@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
@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
@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
@365fun_public
@365fun_public 4 года назад
thank u :) Plz more firebase tutorial.
@davidfu8174
@davidfu8174 3 года назад
Worked Perfectly. Thanks!!!
@xzippyzachx
@xzippyzachx 3 года назад
Glad it helped
@lokeshkumar-pe9wf
@lokeshkumar-pe9wf 3 года назад
wow you are awesome man please keep doing many more thank you
@xzippyzachx
@xzippyzachx 3 года назад
Thanks, will do!
@MikuTheDev
@MikuTheDev 7 месяцев назад
If u use newer versions of unity the Google file u import has changed it name to firebasedatabase
@cromisdev
@cromisdev 3 года назад
Best video ever about this topic
@xzippyzachx
@xzippyzachx 3 года назад
Glad I could help!
@magicamecil
@magicamecil 2 года назад
Thank you very much!! This Tutorial is so amazing
@xzippyzachx
@xzippyzachx 2 года назад
Glad it was helpful!
@JAIPOLY
@JAIPOLY 3 года назад
amazing! thanks for video.
@xzippyzachx
@xzippyzachx 3 года назад
Glad you liked it! :p
@viveksehgal9167
@viveksehgal9167 3 года назад
Great tutorial. Can you please make a tutorial on user verification through mail. It will be very helpful. Thanks in advance.
@camilocorrearojas6972
@camilocorrearojas6972 11 месяцев назад
Thanks a lot!
@xzippyzachx
@xzippyzachx 11 месяцев назад
You're welcome!
@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?
@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!
@janmenardrodriguez8189
@janmenardrodriguez8189 Год назад
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 Год назад
Try building as 64bit
@janmenardrodriguez8189
@janmenardrodriguez8189 Год назад
@@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 Год назад
@@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.
@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.
@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.
@killerboywr
@killerboywr 2 года назад
Fantastic tutorial!
@xzippyzachx
@xzippyzachx 2 года назад
Thank you!
@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.
@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
2 месяца назад
Can I ask your permission to use your instructions and can I edit an interface for my game programming course project?
@xzippyzachx
@xzippyzachx 2 месяца назад
Yes, as long as you credit me you can use anything in this tutorial. Thanks for asking!
@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
@yegort2417
@yegort2417 3 месяца назад
free and workable, thx
@xzippyzachx
@xzippyzachx 3 месяца назад
Your welcome!
@misal-isahabe5281
@misal-isahabe5281 3 года назад
was good tutorial, thanks.
@xzippyzachx
@xzippyzachx 3 года назад
Glad it helped :p
@chaiseven1562
@chaiseven1562 3 года назад
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!
@SolarSoftMedia
@SolarSoftMedia 5 месяцев назад
Don't delete "obsolete" files if prompted. I did this and broke it. After reimporting the deleted files, it works again.
@dimalinovich202
@dimalinovich202 3 года назад
Hero!
@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
@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, RU-vid 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.
@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!
@fadelmubarak9171
@fadelmubarak9171 2 года назад
OMG! it work very well. thank you very much you save my life and thesis xD. already subscribe yeayy :D
@xzippyzachx
@xzippyzachx 2 года назад
You're welcome!
@luccapeixotopraca1675
@luccapeixotopraca1675 Год назад
tANKS MAN, you are the best
@xzippyzachx
@xzippyzachx Год назад
You're welcome!
@almerbati
@almerbati 3 года назад
Thanks ♡♡ your video was very useful ♡♡
@xzippyzachx
@xzippyzachx 3 года назад
Glad it was!
@Pa3BeDka_Gaming
@Pa3BeDka_Gaming 10 месяцев назад
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 10 месяцев назад
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";*
@krabbyPatty824
@krabbyPatty824 Год назад
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 Год назад
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.
@fahadhasan2242
@fahadhasan2242 Месяц назад
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 Месяц назад
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.
@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
@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
@KatoFilmSeisaku
@KatoFilmSeisaku 4 года назад
thanks for te tutorial
@xzippyzachx
@xzippyzachx 4 года назад
Your welcome
@kayra_iydrss
@kayra_iydrss 3 года назад
thanks:)
@xzippyzachx
@xzippyzachx 3 года назад
You're welcome!
@TriptychTechnologies
@TriptychTechnologies Месяц назад
For those who are watching in 2024. Two error may occur. 1) Firebase error dll error Make sure you have added ios build support and android build , whether you are using it or not. In the auth Manager script:- replace user = LoginTask.Result; and user = RegisterTask.Result; with "user = LoginTask.Result.User;" "user = RegisterTask.Result.User;"
@xzippyzachx
@xzippyzachx Месяц назад
Thanks! The GitHub repo is also updated with the working in 2024 code
@lvlSpooksterlvl
@lvlSpooksterlvl 4 дня назад
Thank you for saving me a ton of time!!!!!!!
@DertyDub
@DertyDub 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.
@Иван-э7ы2с
@Иван-э7ы2с 7 месяцев назад
thanks very much!
@xzippyzachx
@xzippyzachx 7 месяцев назад
You're welcome!
@alexm.8619
@alexm.8619 4 года назад
I think I'm going to pick up Unity. Your fps game is a big inspiration :)
@xzippyzachx
@xzippyzachx 4 года назад
Glad it is! Good luck! I suggest watching Brackeys series on making your first game in unity
@vast634
@vast634 2 года назад
Nice tutorial: just a word of caution: dont make unnecessary hurdles for players to join your game, if its not really necessary (like in a long running competitive MMO gameworld). Meaning: a small arena shooter should make it possible to log in by just providing a Username/Avatarname (if there is no state like inventory or abilities saved between logins). This removes any hurdles (handing out private information like the email address) to just join a game. A simple persistent account (detecting correct user) can also be created without entering a password: by generating a GUID on the client at account creation, and pushing that to the server to compare and retrieve the former account. Now at each login the client can read out the locally stored GUID and automatically log in without any further input. (this auth string or number could be copied by the player to a different device if player really care for that). And in any case: to only have trusted players on the server you would need to whitelist them manually anyways, or use a private session-password to share with friends.
@xzippyzachx
@xzippyzachx 2 года назад
Yeah I would hope anyone making a serious project would do their own research and implement Firebase the best way that suits their project. This is all good info thanks!
@Caden_Burleson
@Caden_Burleson 11 месяцев назад
Will this work on mobile? What happens if you delete the app and re-install? Will all your data be gone?
@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
@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
@isabelly6280
@isabelly6280 7 месяцев назад
firebase autentication doesnt appear in package manager and i tried everything to appear and it didnt work :(
@xzippyzachx
@xzippyzachx 7 месяцев назад
Read the pinned comment on this video :)
@5JurassicAlexandruRotaru
@5JurassicAlexandruRotaru Месяц назад
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 Месяц назад
You should just need to add the new app or correct identifier in the Firebase dashboard > Project settings > General > Your apps.
@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
@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
@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.
@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.
@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
@dakshauchagaonkar5150
@dakshauchagaonkar5150 4 года назад
Hey I finished implementing your tutorial but I am getting this error when I try to deploy on my phone called a failure occured while executing com.android.build.graddle.internal.tasks.Workers$ActionFacade. By the way great tutorial though!
@xzippyzachx
@xzippyzachx 4 года назад
I don't think that error is related to Firebase. It has something to do with building for android. I would google the error and see if there are others with the issue. Thanks :p
@sarveshpangam
@sarveshpangam 3 года назад
I had the same error, I tried with different unity version and it worked.
@__MEETTEJANI
@__MEETTEJANI 11 месяцев назад
Need help!!! "USE_AUTH_EMULATOR not set" this text is showing on console while registring or login
@xzippyzachx
@xzippyzachx 11 месяцев назад
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.
@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.
@fahadhasan2242
@fahadhasan2242 3 месяца назад
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 3 месяца назад
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 3 месяца назад
@@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.
@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
@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!
@arck-yt
@arck-yt 3 года назад
its giving the error that the email is badly formatted help please!!!!
@xzippyzachx
@xzippyzachx 3 года назад
That sounds like you aren't using a properly formatted email address. Feel free to join my discord server if you need more help
@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) ?
@minimumware
@minimumware 10 месяцев назад
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 10 месяцев назад
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 10 месяцев назад
@@xzippyzachx Thank you, I finished the tutorial! I'm onto the next one.
@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.
@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
@edduchambi6964
@edduchambi6964 3 года назад
Great tutorial, a question, firebase does not work on my mobile device, but in the unity editor it does
@xzippyzachx
@xzippyzachx 3 года назад
Yes, this seems to be a common issue that I haven't found a consistent solution to. If possible build the project in x64. Feel free to join my Discord server and share your findings.
@michaelferrer4923
@michaelferrer4923 2 года назад
Best Copy Paste Tutorial
@xzippyzachx
@xzippyzachx 2 года назад
Hope you went through the code to understand it though :p
@TiimedArts
@TiimedArts 3 года назад
Is there a way to send an email with activating the account before you actually can log in?
@xzippyzachx
@xzippyzachx 3 года назад
There may be, read into the Firebase docs. There should be a section on email confirmation
@TiimedArts
@TiimedArts 3 года назад
@@xzippyzachx i will do that, thank you :)
@ImmersiveTechSolution
@ImmersiveTechSolution Год назад
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
@jecmwot3659
@jecmwot3659 4 года назад
How if i want to save data with email and load again when i log in?
@xzippyzachx
@xzippyzachx 4 года назад
I don't 100% know what you are asking. But I think you are asking how to store data for a particular user account. For this you would need to look into using the Firebase database to store data for particular users.
@laibaabbasi3966
@laibaabbasi3966 2 года назад
It's amazing 🤩 when you will upload tutorial about forgot password and email verification? I'm waiting for it...
@xzippyzachx
@xzippyzachx 2 года назад
Thanks, I probably wont be making more tutorials any time soon so I recommend reading the Firebase documentation for anything else
@everlastingmedia
@everlastingmedia Год назад
Solid tut. Any problems I encountered were due to ID10T errors.
@xzippyzachx
@xzippyzachx Год назад
Glad I could help! :p
@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
@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.
@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.
@unicorps8996
@unicorps8996 5 месяцев назад
help me... unity cannot implicitly convert type firebase.auth.authresult to firebase.auth.firebaseuser
@xzippyzachx
@xzippyzachx 4 месяца назад
Check the GitHub repo for the latest updated code
@unicorps8996
@unicorps8996 4 месяца назад
@@xzippyzachx thanks..it's work
@n7pankake236
@n7pankake236 8 месяцев назад
Here comes my necromancer comment: I get an error when I either try User = RegisterTask.Result; or User = LoginTask.Result; Saying that Cannot implicitly convert type 'Firebase.Auth.AuthResult' to 'Firebase.Auth.FirebaseUser' Edit: Fixed change the RegisterTask.Result to RegisterTask.Result.User and LoginTask.Result.User
@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.
@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.
@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.
@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!
Далее
БЕЛКА РОЖАЕТ?#cat
00:28
Просмотров 294 тыс.
Unity Sign-in Authentication with Google Firebase 2024
16:47
Cursor Is Beating VS Code (...by forking it)
18:00
Просмотров 92 тыс.
How To Start Indie Game Dev the RIGHT WAY in 2024
6:25
Making UI That Looks Good In Unity
18:06
Просмотров 675 тыс.
How to use Firebase Database in Unity (REST API)
27:36
БЕЛКА РОЖАЕТ?#cat
00:28
Просмотров 294 тыс.