Комментарии:
Hello, its working in 2023??? Thanks
Ответитьlegit full lag
Ответитьthanks for the video. You help me a lot !!! success in your work♥
ОтветитьCan i load data from google sheets?
ОтветитьHow can you prevent the data being tempered from the user side and get uploaded to the server?
Ответитьevery time I call the save data method, unity crashes... help :(
Also, there is no "My Registry" on my unity, I am using 2021.3.16f1
I tried redownloading google-services json, still same, crashes when calling the save data method
I need help please. When I'm trying to reference my FirebaseDatabase, I get this error message: DatabaseException: Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your GetInstance() call. What ist the problem here? I downloaded the json file and put it into unity.
Ответитьplease help me how do I delete data from firebase using button or something script in unity?
ОтветитьYou're amazing for this. 2 years later and the script still works. Very rare for a firebase tutorial! Very clean and understandable.
hot tip, if you're trying to get the child object that is deeper than a level show in this video, change this:
string usernameResult = childSnapshot.Child("username").Value.ToString();
to this:
string usernameResult = childSnapshot.Child("userInfo").Child("username").Value.ToString();
hey i am getting a bunch of errors and i simply cannot fix them
Ответитьlife saver!!!!!!!!!!!!!!!
Ответитьi got data base reference null error even i download full project
Ответить/* Hi there. Another great tutorial. I failed a bit until I checked the comments.
*Fortunately I muddled my way through, one small caveat to smooth UI swapping.
* I commented out all of the methods for swapping screens. UserDataScreen() .. RegisterScreen() etc.
I replaced all of these methods with */
public void SwitchScenes(GameObject nextUI)
{
if (instance.activeUI.activeInHierarchy)
{
instance.activeUI.SetActive(false);
}
instance.activeUI = nextUI;
instance.activeUI.SetActive(true);
}
// added a variable at the top:
public GameObject activeUI;
// in Awake() I added this:
if (!instance.loginUI.activeInHierarchy)
{
instance.loginUI.SetActive(true);
instance.activeUI = instance.loginUI;
}
//And the magic of all of this is, when I want to switch to a new scene, it doesn't matter which UI I'm travelling from, it will remember, deactivate the "activeUI" and activate the UI passed in the method.
UIManager.instance.SwitchScenes(UIManager.instance.userDataUI);
// For anyone who sees this comment I hope it makes a difference for you, and HAPPY NEW YEAR <3
Very helpful tutorial buddy! Thanks :)
Ответитьis this hackable?
ОтветитьThank you, your tutorial really helps me a lot :D
Ответитьis there a way to make a list of items for the user ? and save/load it to firebase database?
ОтветитьHI can i ask you something?, when i build the application, firebase dont work on my mobile... it didnt crash but did also nothing... its perfectly fine in my unity editor.. google-service-desktop.json seems also connected to my project and can read, and while google-service.json unity didnt read.
ОтветитьHey, what did you put in the Back button OnClick function? I either missed it or you didn't go over it in the video.
P.S. Thank you for the tutorial, very well made.
Can i know i dont have error, scrollview content have scoreelement depends on my data. But my problem is in not visible.
Ответитьi hope you also explained how you created the scoreboard ui,
Ответитьhey can anybody help me .....when i click on scoreboard button it's showing me
NullReferenceException: Object reference not set to an instance of an object
FirebaseManager+<LoadScoreboardData>d__36.MoveNext () (at Assets/Scripts/FirebaseManager.cs:397)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <0ee480759f3d481d82ada245dc74f9fd>:0)
beside login and saving data method is working fine but i stuck here .hope someone have any good solutions
authentication is not working when I build for an Android or windows x86
cant find out the problem
SIR HOW TO RESET DATA FROM SCOREBOARD?
Ответитьhelp me sir NullReferenceException: Object reference not set to an instance of an object
FirebaseManager+<LoadScoreboardData>d__34.MoveNext () (at Assets/Scripts/FirebaseManager.cs:378)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <84f51b1b0ff2473ca787c217e1eda8b9>:0)
Wait what do you mean it starts from the previous? the previous was the auth but how did you combine both
ОтветитьWhen i build the game, it doesn't save any data.
Do you know why?
Thank you for going into detail about the db rules, I had mine just slightly wrong and was helpful to see your example.
ОтветитьHere for the bros
{
"rules": {
"users": {
".read": "auth != null",
"$user_id": {
".write": "$user_id === auth.uid",
}
}
}
}
Object reference not set to an instance of an object WHAT SHOUD I DO
ОтветитьCan I use this in a WebGL game from unity?
ОтветитьNICEEEE TUTORIAL , THANKSS
ОтветитьI saw the scripts and others but I don't understand how you made the scoreboard and score element I wish you would show them too
ОтветитьWell cant you just use unity instead of firebase at all
ОтветитьReally great tutorial! I got it working great. Now I want to adapt the tutorial to my own project which works across different scenes; do I need to initialize firebase and auth and things after this section?
ОтветитьHI what could it be the problem if when i play the game it says that the line where my vartask is written says that Object reference not set to an instance of an object
Ответитьhello everyone can someone pls help, when im trying to load data it always show { key = kills, value = }. the code cant detect the value
ОтветитьHello brother. In the save button section, it does not work and no information is saved on Firebase and Scoopboard does not work.
ОтветитьHi my brothers
Button save not working
Save not working?why
bruh make update and delete data, a complete crud system for unity
Ответитьcan i make multiplayer game in unity with firebase with out using firebase cloud functions will i have to use listners or what please someone guide me
ОтветитьThanks!
ОтветитьWould you consider doing a tutorial on custom authentication, specifically steamworks SteamID > email/password? I feel like that's a huge thing for any game running on steam (there are many as you know)- to not have to disturb the flow with a email/password login when you already own it on steam..
ОтветитьGreat tutorial :) thank you
ОтветитьGreat job, thanks for sharing!!
ОтветитьCan firebase be used for desktop games?
ОтветитьVery nice tutorial ! Thanks a lot. I have one question, if you have a huge number of players (like one million for example), each call for updating the leaderboard would be very costly since you retrieve all the players from the database and you sort them. How can you optimize this ?
Ответитьthank you man , just bless you!
ОтветитьI have this error, any help, please ? (great video!!)
Assets\Scripts\FirebaseManager.cs(400,48): error CS0246: The type or namespace name 'scoreElement' could not be found (are you missing a using directive or an assembly reference?)