- Home /
Question by
cliffmlimwa · Mar 13, 2021 at 11:59 AM ·
androidunityeditordatabase
save and load firebase
i followed all processing such as adding database sdk to unity etc but when i just want to connect unity to firebase i'm getting error
Assets\Script\RealTimeLoading.cs(14,21): error CS0029: Cannot implicitly convert type 'Firebase.Database.DatabaseReference' to 'DatabaseReference'
i folowed a lot of tutorial their not get any error here my code
using Firebase;
using Firebase.Database;
using Firebase.Unity.Editor;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RealTimeLoading : MonoBehaviour
{
DatabaseReference reference;
// Start is called before the first frame update
void Start()
{
reference = FirebaseDatabase.DefaultInstance.RootReference;
}
// Update is called once per frame
void Update()
{
}
}
error come with this line
FirebaseDatabase.DefaultInstance.RootReference;
Comment