- Home /
Question by
unity_2BBCBA9A8FA8A236B5D9 · Dec 19, 2021 at 07:42 PM ·
database
Firebase Build problem
I created a database to save a name with firebase. The problem is that unity saves the data in remote mode to the database, but it does not save when I build, why do you think?
DatabaseReference reference;
void Start()
{
reference=FirebaseDatabase.DefaultInstance.RootReference;
}
public void getName()
{
name = GameObject.Find("Name").GetComponent<Text>().text;
reference.Child("Users").Child("name").SetValueAsync(name);
}
Comment
Your answer
Follow this Question
Related Questions
Database solution networking 0 Answers
Player interaction in multiplayer. 0 Answers
Updating variables from dictionary database in edit mode C# 0 Answers