Answers for "unity get data from firebase"


unity get data from firebase

// Perform the steps at the following link to setup Firebase
// for your Unity project:

// To connect to the databse in a script, use the following
// two lines:
DatabaseReference reference = FirebaseDatabase.DefaultInstance.RootReference;

// To get a data snapshot and take action with it:
FirebaseDatabase.DefaultInstance.GetReference("DATABASENAME").GetValueAsync().ContinueWith(task => {
	if (task.IsFaulted)
		// Failure
	else if (task.IsCompleted)
		DataSnapshot snapshot = task.Result;
		// Success
Posted by: Guest on March-10-2020

Code answers related to "unity get data from firebase"

C# Answers by Framework

Browse Popular Code Answers by Language