Unity User Login System Tutorial - Firebase Authentication

Sdílet
Vložit
  • čas přidán 4. 06. 2024
  • Unity User Login System Tutorial - Firebase Authentication. Hello guys, this is a tutorial on how to make a simple user login and register system in unity using Firebase Authentication. In this video we will go over setting up a project in the firebase console and then how to login and register a user using unity.
    ----------------------
    GitHub (Download the project): github.com/xzippyzachx/UnityF...
    Firebase console: firebase.google.com/
    UI Asset Used: assetstore.unity.com/packages...
    My Discord: / discord
    My Multiplayer Development Updates Playlist: • Multiplayer Game Updates
    My Website: zxgames.net
    ----------------------
    Time stamps:
    0:00 - Intro
    0:30 - Setup Starter Project
    1:16 - Create Firebase Project
    2:12 - Setup Firebase With Unity
    3:26 - Import Firebase SDK
    4:42 - Setup Authentication
    5:42 - Create Logic In Unity
    12:16 - Testing
    13:06 - Find Help & Outro
    ----------------------
    Music:
    Title: Kubbi Cascade
    Source: • Kubbi / Cascade
    #Tutorial #GameDev #Firebase #Unity3D #Unity #GameDevelopment

Komentáře • 531

  • @xzippyzachx
    @xzippyzachx  Před 3 lety +35

    *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 Před 3 lety +1

      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  Před 3 lety +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  Před 3 lety

      @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 Před 3 lety +1

      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 Před 3 lety

      @@alfombraxd4910 We have the same problem. Did you solve it? Please teach me if u solve it

  • @NixronBarrak
    @NixronBarrak Před 3 lety +22

    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!

  • @tomweiland
    @tomweiland Před 3 lety +42

    Nice tutorial! Although I don't need this at the moment, I'll almost certainly be coming back here soon :P

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +8

      Thanks Tom! I guess I can call my first tutorial Tom approved :p lol

    • @tomweiland
      @tomweiland Před 3 lety +3

      @@xzippyzachx 😂

  • @redchilli2563
    @redchilli2563 Před 3 lety +6

    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! :)

  • @nicolasmontillamayorga5709
    @nicolasmontillamayorga5709 Před 3 lety +14

    You're literally saving my thesis, thanks mate

  • @KrovGame
    @KrovGame Před 3 lety +9

    damn , i knew you from a discord , and now i searched for this type of video and found yours , thats cool

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +2

      Yeah from Tom's right? Feel free to join my discord too

  • @kaanapan1183
    @kaanapan1183 Před 3 lety +4

    This is what I needed to start. Thanks buddy!

  • @nachohotdawg5634
    @nachohotdawg5634 Před 3 lety +6

    very clean and accurate! thanks a lot.

  • @eunicevalderama1076
    @eunicevalderama1076 Před 2 lety +1

    OMG! Thank you so much!!! The only login and register system that works after watching tons of tutorial.. Amazing amazing!!!

  • @gamingguy731
    @gamingguy731 Před 3 lety +5

    Great tutorial bud!
    Can't help but keep fantasizing the game "Just Shapes & Beats" in my head 'cause of that BGM lol

  • @toontastic2063
    @toontastic2063 Před 2 lety +1

    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 :)

  • @davidfu8174
    @davidfu8174 Před 3 lety +2

    Worked Perfectly. Thanks!!!

  • @krystalm1512
    @krystalm1512 Před 3 lety +2

    thz u so much .i just learn firebase with unity and this help me a lot :)

  • @magicamecil
    @magicamecil Před 2 lety +2

    Thank you very much!! This Tutorial is so amazing

  • @TheOffGridFamily
    @TheOffGridFamily Před 3 lety +2

    Great Tutorial. Keep up the good work

  • @windwhite4654
    @windwhite4654 Před 3 lety +2

    thank u :) Plz more firebase tutorial.

  • @mdwidana
    @mdwidana Před 8 měsíci +1

    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!

  • @povilasca8306
    @povilasca8306 Před 3 lety +6

    Awesome! Thanks for doing this. Thought it would be much harder

  • @biki_02
    @biki_02 Před rokem +1

    thanks for the easy to follow tutorial.please do more about this for unity updated version.

    • @xzippyzachx
      @xzippyzachx  Před rokem

      Glad I could help. Don't have any plans to make more tutorials at this time, but maybe some day

  • @eboatwright_
    @eboatwright_ Před 3 lety +4

    Thank you for this! :D

  • @lokeshkumar-pe9wf
    @lokeshkumar-pe9wf Před 3 lety +1

    wow you are awesome man please keep doing many more thank you

  • @JAIPOLY
    @JAIPOLY Před 3 lety +2

    amazing! thanks for video.

  • @Angel3ts
    @Angel3ts Před 2 měsíci +1

    I have seen your comment in a video of one indian guy that copied you, thanks for the tutorial, the real OG

    • @xzippyzachx
      @xzippyzachx  Před 2 měsíci

      Thanks for coming to the real tutorial!

  • @KellermannTheGrey
    @KellermannTheGrey Před 3 lety +5

    Great tutorial, I'd like to see how you do the high score screen using a database

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +4

      Noted, I may do a tutorial on using the Firebase database

  • @cromisdev
    @cromisdev Před 3 lety +1

    Best video ever about this topic

  • @GreatAnimation
    @GreatAnimation Před 2 lety +1

    i really like this tutorial

  • @misal-isahabe5281
    @misal-isahabe5281 Před 3 lety +2

    was good tutorial, thanks.

  • @jay_chromosome7172
    @jay_chromosome7172 Před 3 lety +2

    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  Před 3 lety +1

      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 Před 3 lety +1

      @@xzippyzachx ayt thanks... Will implement that

  • @killerboywr
    @killerboywr Před 2 lety +1

    Fantastic tutorial!

  • @fadelmubarak9171
    @fadelmubarak9171 Před 2 lety +1

    OMG! it work very well. thank you very much you save my life and thesis xD. already subscribe yeayy :D

  • @almerbati
    @almerbati Před 3 lety +1

    Thanks ♡♡ your video was very useful ♡♡

  • @reez_gd5408
    @reez_gd5408 Před 3 lety +2

    I WISH I HAVE COMPUTER AND MAKE A GAME
    I LIKE YOUR VIDEO KEEP UP A GOOD WORK

  • @viveksehgal9167
    @viveksehgal9167 Před 3 lety +4

    Great tutorial. Can you please make a tutorial on user verification through mail. It will be very helpful. Thanks in advance.

  • @camilocorrearojas6972
    @camilocorrearojas6972 Před 8 měsíci +1

    Thanks a lot!

  • @KatoFilmSeisaku
    @KatoFilmSeisaku Před 3 lety +2

    thanks for te tutorial

  • @user-dx5rg4pq6d
    @user-dx5rg4pq6d Před 4 měsíci

    thanks very much!

  • @luccapeixotopraca1675
    @luccapeixotopraca1675 Před rokem +1

    tANKS MAN, you are the best

  • @kriptosahamusa1216
    @kriptosahamusa1216 Před 3 lety +3

    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  Před 3 lety +1

      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!

  • @kayra_iydrss
    @kayra_iydrss Před 3 lety +3

    thanks:)

  • @Jacky-fb4th
    @Jacky-fb4th Před 3 lety +2

    nice tutorial i didnt see those windows > 4:05 and 4:34 but it still work in Window

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      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 Před 3 lety

      ok

  • @chaiseven1562
    @chaiseven1562 Před 3 lety +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!

  • @dimalinovich202
    @dimalinovich202 Před 3 lety +2

    Hero!

  • @RugbugRedfern
    @RugbugRedfern Před 3 lety +16

    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  Před 3 lety +3

      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 Před 3 lety +6

      ​@@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.

  • @maazahmadsatti736
    @maazahmadsatti736 Před 2 lety +1

    Thanks

  • @MikuTheDev
    @MikuTheDev Před 3 měsíci +2

    If u use newer versions of unity the Google file u import has changed it name to firebasedatabase

  • @Briskjungle
    @Briskjungle Před 2 lety +1

    would love to see a series on cloud fire store

    • @xzippyzachx
      @xzippyzachx  Před 2 lety

      I haven't used it yet. Maybe I will if I get around to trying it out

  • @yegort2417
    @yegort2417 Před dnem +1

    free and workable, thx

  • @therosvaldas
    @therosvaldas Před 3 lety +1

    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  Před 3 lety

      The script class could maybe not match the file name. Please join my discord server if you need further help :p

  • @alexm.8619
    @alexm.8619 Před 3 lety +4

    I think I'm going to pick up Unity. Your fps game is a big inspiration :)

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Glad it is! Good luck! I suggest watching Brackeys series on making your first game in unity

  • @Roadified
    @Roadified Před 2 lety +2

    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  Před 2 lety

      Have you used a mobile console to see if there are errors on the Android build?

  • @BrettClimb
    @BrettClimb Před rokem +1

    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  Před rokem +1

      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.

  • @edduchambi6964
    @edduchambi6964 Před 3 lety +1

    Great tutorial, a question, firebase does not work on my mobile device, but in the unity editor it does

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      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.

  • @SolarSoftMedia
    @SolarSoftMedia Před 2 měsíci +1

    Don't delete "obsolete" files if prompted. I did this and broke it. After reimporting the deleted files, it works again.

  • @gemini1q
    @gemini1q Před 3 lety +2

    Hello, I switched my platform to WebGL, can we use login screen on that platform? Thank you...

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      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.

  • @krabbyPatty824
    @krabbyPatty824 Před rokem +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  Před rokem

      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.

  • @XOBEP_KHEXTOB
    @XOBEP_KHEXTOB Před 2 lety +2

    HELP PLEASE
    In the c# code it writes me: UIManager isn't existing in this context (186 line)

    • @xzippyzachx
      @xzippyzachx  Před 2 lety

      Did you make the UIManager script? Join and ask for help on my Discord server if you still need help.

  • @theeyeofthesky4974
    @theeyeofthesky4974 Před 3 lety +3

    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  Před 3 lety +2

      Try and build your game for 64bit. Also join my discord server if you want my help to troubleshoot further.

    • @theeyeofthesky4974
      @theeyeofthesky4974 Před 3 lety +1

      Thanks
      This solution actually fixed my problem

    • @Commander_Wolf32
      @Commander_Wolf32 Před 3 lety +1

      @@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

  • @mertozcelik484
    @mertozcelik484 Před 3 lety +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  Před 3 lety

      Sry for the late response, CZcams 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 Před 3 lety

      @@xzippyzachx Thank you :) I created a scriptableobject that hold a name string as a temporary solution.

  • @teoprod
    @teoprod Před 2 lety +1

    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  Před 2 lety +1

      Thanks! You would need to setup some sort of request and accept system using the Firebase database.

    • @teoprod
      @teoprod Před 2 lety +1

      @@xzippyzachx Ohh I see! Do you know if Firebase does have a function to do it?

    • @xzippyzachx
      @xzippyzachx  Před 2 lety

      @@teoprod No there is no easy built in method. You would have to build it yourself.

  • @javad2906
    @javad2906 Před rokem +1

    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

  • @everlastingmedia
    @everlastingmedia Před rokem +1

    Solid tut. Any problems I encountered were due to ID10T errors.

  • @elmalili619
    @elmalili619 Před 3 lety +1

    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  Před 3 lety

      Not really sure what you are asking. Join my discord server if you need help or have questions.

  • @Pa3BeDka_Gaming
    @Pa3BeDka_Gaming Před 7 měsíci +1

    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  Před 7 měsíci

      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";*

  • @Gtclanagar
    @Gtclanagar Před 3 lety +1

    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  Před 3 lety

      You should just have to change the project type in the Firebase console

    • @Gtclanagar
      @Gtclanagar Před 3 lety +1

      xzippyzachx thanks!

  • @bjorn84
    @bjorn84 Před 3 lety +4

    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  Před 3 lety

      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 Před 3 lety +1

      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  Před 3 lety

      @@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 Před 3 lety +1

      @@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

  • @vast634
    @vast634 Před 2 lety +4

    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  Před 2 lety +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 Před 7 měsíci

      Will this work on mobile? What happens if you delete the app and re-install? Will all your data be gone?

  • @zainkashif3269
    @zainkashif3269 Před 3 lety +1

    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  Před 3 lety

      Its best to ask for help over on my Discord channel. Feel free to join and ask for help in the help channel.

  • @nadeenalamoudi2000
    @nadeenalamoudi2000 Před 3 lety +1

    Is this app can be easily built as a WebGL? or I need further configuration for the database?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      I am not sure. This a tutorial for Unity. You can read the Firebase documentation to see if it supports WebGL

  • @bebogt5922
    @bebogt5922 Před 3 lety +3

    How can I set the device Id for the one who logs in to prevent logging in from several devices please help

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      Firebase does not directly support multiple login prevention. But you can use the real-time database to make your own version. I have not done this myself yet though.

    • @aggames5065
      @aggames5065 Před 3 lety

      @@xzippyzachx CAN YOU CREATE A VIDEO PLEASE THIS WILL HELP ME ALOT

  • @c-lawbeats4594
    @c-lawbeats4594 Před rokem +1

    Hello, thanks for the helpful video.
    My app works in editor but doesnt work in windows build, any help?

    • @xzippyzachx
      @xzippyzachx  Před rokem

      Try building in 64bit. Ask for help on my Discord server if you still have issues

  • @cristeaadrian9682
    @cristeaadrian9682 Před 3 lety +1

    Thanks, all went fine and good at first but "after night" now is working as intended in Editor but in build( Android ) FirebaseAuth go null when initialization. Help?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Did you try what I suggested in the pinned comment on this video?

    • @cristeaadrian9682
      @cristeaadrian9682 Před 3 lety +1

      @@xzippyzachx no, i didn't noticed but after 4h of trying i solved it ( AndroidManifest.xml, gradleTamplate.project, switching from .NET 2 to .NET4 in Unity, and removing Firebase Analytics. ++), thank you for response!

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Great! Glad it works!

    • @nummagammes3947
      @nummagammes3947 Před 3 lety

      I have the same problem how did you fix it?

    • @cristeaadrian9682
      @cristeaadrian9682 Před 3 lety

      @@nummagammes3947 you can see in my response to xzippyzachx, search on google the probleme, i dont remember how i solve it step by step

  • @pluras1267
    @pluras1267 Před 3 lety +1

    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  Před 3 lety

      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!

  • @DertyDub
    @DertyDub Před 3 lety +2

    hey how would i make it where when you login it would tpa you to a scene

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      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.

  • @zulfazl2606
    @zulfazl2606 Před 3 lety +1

    Hello brother, can i know why i cant change the Background to the selected image sources?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Im not sure. Seems like a UI issue. You can ask for help on my Discord server

  • @laibaabbasi3966
    @laibaabbasi3966 Před 2 lety +1

    It's amazing 🤩
    when you will upload tutorial about forgot password and email verification? I'm waiting for it...

    • @xzippyzachx
      @xzippyzachx  Před 2 lety +1

      Thanks, I probably wont be making more tutorials any time soon so I recommend reading the Firebase documentation for anything else

  • @davidsanchezcallizo9552
    @davidsanchezcallizo9552 Před 3 lety +1

    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  Před 3 lety

      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

  • @swapnacd9615
    @swapnacd9615 Před 2 lety +1

    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

  • @samsara2024
    @samsara2024 Před 3 lety +1

    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  Před 3 lety

      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 Před 3 lety

      @@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  Před 3 lety +1

      @@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

  • @jorgedomenechjara7181
    @jorgedomenechjara7181 Před 3 lety +4

    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.

  • @AscendingPilot
    @AscendingPilot Před rokem

    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  Před rokem +1

      I answered your other comment, but feel free to ask for help on my Discord server if you still have issues

  • @qingyufeng3912
    @qingyufeng3912 Před 2 lety +1

    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  Před 2 lety

      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 Před 2 lety

      @@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 Před 2 lety +1

      @@xzippyzachx I managed to join your Discord, thank you!

  • @TiimedArts
    @TiimedArts Před 3 lety +3

    Is there a way to send an email with activating the account before you actually can log in?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      There may be, read into the Firebase docs. There should be a section on email confirmation

    • @TiimedArts
      @TiimedArts Před 3 lety +1

      @@xzippyzachx i will do that, thank you :)

  • @MilindP
    @MilindP Před 3 lety +1

    Will this method also remember the user and does not ask for login credentials again?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      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.

  • @janmenardrodriguez8189
    @janmenardrodriguez8189 Před rokem +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  Před rokem +1

      Try building as 64bit

    • @janmenardrodriguez8189
      @janmenardrodriguez8189 Před rokem

      @@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  Před rokem

      @@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.

  • @eddyrouhana4965
    @eddyrouhana4965 Před 2 lety +1

    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

  • @alexbove9143
    @alexbove9143 Před 3 lety +1

    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 Před 3 lety +1

      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  Před 3 lety

      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. czcams.com/video/GjyQiq23fBk/video.html

  • @AYANKHAN-eh6ve
    @AYANKHAN-eh6ve Před 2 lety +1

    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  Před 2 lety

      Try deleting and re-downloading your google-services.json file. You can also join my Discord server and ask for help there.

  • @dakshauchagaonkar5150
    @dakshauchagaonkar5150 Před 3 lety +1

    So for forget password you need a user which is already authenticated right could you please explain the flow of execution so accordingly we could code those things!Thank you

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      I believe the forget password function takes an email address as input. It then sends a reset email if an account exists with that email. If you want more information you can read the Firebase documentation.

  • @minimumware
    @minimumware Před 7 měsíci +1

    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  Před 7 měsíci

      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 Před 7 měsíci +1

      @@xzippyzachx Thank you, I finished the tutorial! I'm onto the next one.

  • @emirsaidhaliloglu2523
    @emirsaidhaliloglu2523 Před 3 lety

    It looks a nice tutorial but i did't seen the Add Selected Registres window after importing. How can I do it manually?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      I helped them on my Discord server :p

  • @KEEKSPLAYS23
    @KEEKSPLAYS23 Před 3 lety +1

    Would this be able to add save files per user? For example Fortnite. You can buy a skin from the shop on a computer, then would it be able to be in your skins on a different computer, or is that completely different?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      Yes, it wouldn't be a file that you are saving. Just a value that represents weather you have unlocked/bought that skin. Yes, a database saves data in the cloud that can be received from any device. I suggest doing some research about how a database works.

    • @KEEKSPLAYS23
      @KEEKSPLAYS23 Před 3 lety +2

      @@xzippyzachx OK. Would you be able to maybe make a tutorial off that? Only because I'm kinda new to all of this.

    • @xzippyzachx
      @xzippyzachx  Před 3 lety +1

      @@KEEKSPLAYS23 I already have a database tutorial. You will have to adapt it to your own projects needs on your own.

    • @KEEKSPLAYS23
      @KEEKSPLAYS23 Před 3 lety

      @@xzippyzachx ok

  • @KevStuff25
    @KevStuff25 Před rokem +1

    Can you teach me like warning text cuz I was confused about like warning login and sign up

    • @xzippyzachx
      @xzippyzachx  Před rokem

      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 Před rokem

      @@xzippyzachx also can you make forgot password and verfy email too

  • @kevingaspar5865
    @kevingaspar5865 Před 3 lety +1

    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  Před 3 lety

      Seems like you need to re download the google-services.json file. If you still have issues join my discord and ask for help

  • @user-zy4zx9qe1v
    @user-zy4zx9qe1v Před 2 lety +1

    Hi there, how to remove the firebase assets from my project before I re-install the newest .unitypackage? I got google version manager reminds me of removing some obsolete files whose name started by firebase, but after done that I m still not able to open the package resolver.

    • @user-zy4zx9qe1v
      @user-zy4zx9qe1v Před 2 lety +1

      I went to the file directory and basically deleted all the files with firebase in their names manully. Then I restarted the project import it - still failed. Really confused me. Could anyone give me a hint?

    • @xzippyzachx
      @xzippyzachx  Před 2 lety

      The package manager is no longer used to install Firebase. This means that package resolver does not need to show up. If you install Firebase the new way and are still getting errors I suggest asking for help on my Discord server and showing the errors.

    • @user-zy4zx9qe1v
      @user-zy4zx9qe1v Před 2 lety

      @@xzippyzachx ​ @xzippyzachx ​ Thanks for replying! I imported the package the new way and there was no error, but I am still not able to find firebase or Google LLC in my package manager -> in projects. Is it normal?

    • @RumOwnesT
      @RumOwnesT Před 2 lety

      @@user-zy4zx9qe1v did you find solution, facing same probleme, is it normal ? even tho it is in the floders

  • @jecmwot3659
    @jecmwot3659 Před 3 lety +2

    How if i want to save data with email and load again when i log in?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      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.

  • @onestepdown2475
    @onestepdown2475 Před 3 lety +1

    im making my own login screen, what does the warning and confirm text say?

    • @xzippyzachx
      @xzippyzachx  Před 3 lety

      Look at the project on GitHub as reference

  • @ms-9
    @ms-9 Před 3 lety +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  Před 3 lety

      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 Před 3 lety +1

      @@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 Před 3 lety +1

      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  Před 3 lety

      Glad I could help

  • @nachohotdawg5634
    @nachohotdawg5634 Před 3 lety +1

    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  Před 3 lety +1

      Are you talking about user data? If so then go watch my second tutorial on that topic.

  • @chi-hanlin13
    @chi-hanlin13 Před 2 lety +1

    hey great explanation and everything, ive done exactly the same thing, but with login and signup button it always says reference not set to an instance of an object, but still I assigned everything? love to join your discord help community but the page wouldn't load, thanks loads ahead if you can answer!

    • @chi-hanlin13
      @chi-hanlin13 Před 2 lety

      var LoginTask = auth.SignInWithEmailAndPasswordAsync(email, password);
      var RegisterTask = auth.CreateUserWithEmailAndPasswordAsync(email, password);
      both errors appear on these two lines of codes, I didn't miss the string and assigned them in the inspector too

    • @xzippyzachx
      @xzippyzachx  Před 2 lety

      Discord wont load? Here is the invite link you can try again discord.gg/7rGAAqC. In terms of the issue you are having I would need more info but start by trying to delete and re-download your google-services.json file.

    • @chi-hanlin13
      @chi-hanlin13 Před 2 lety

      @@xzippyzachx @xzippyzachx thank you so much for replying but yes that was the invitation link I got at first , after I clicked accept, the page just crashed for some reason... ill keep trying till it works

  • @time6385
    @time6385 Před 2 lety +1

    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  Před 2 lety

      I suggest getting a mobile console so that you can see any possible errors that are being thrown on mobile

    • @time6385
      @time6385 Před 2 lety +1

      @@xzippyzachx I already solve it. If I have question again, I will join your discord to ask for help. Thank for reply