- Home /
error CS0234: The type or namespace name 'Editor' does not exist in the namespace 'Firebase.Unity'
Hi. I started to make some game with real time database. But i got error when i use "using Firebase.Unity.Editor;". I search a lot but nothing help me. I tried to move Editor in files but nothing. Am I missing something?
I have the same error, now you have a solution?
Hello, I have the same issue as above. Have you solved this error?,hello, I have the same issue as above. Have you solved this error?
hello, I have the same issue as above. Have you solved this error?
Answer by Waheed11 · Jan 19, 2021 at 04:58 AM
Try to reimport Firebase unitypackages again, Make sure that you import plugins from dotnet4 floder
Sorry for late respond. I reimport all packages and i use plugins only from dotnet4. I deleted and import new google-services.json and i am not using any of custom packages, but still not fixed...
So i tried to make a new project. I import from dotnet4 firebaseDatabase then FirebaseAuth. Then i add google-services.json. Created new c# script and use this libaries
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Scene$$anonymous$$anagement; using Firebase; using Firebase.Database; using Firebase.Unity.Editor;
but again same error. Am i still missing something?
Answer by Renanmgs · Mar 16, 2021 at 07:07 PM
Same error after update to Firebase SDK 7.1.0 on Unity 2020.3.0f1
Reversing to 6.16.1 seems to work, but only the email login that don't work properly anymore.
Answer by atulvi · Jun 08, 2021 at 08:36 AM
using Firebase.Unity.Editor: is deprecated in latest firebase unity sdk. please comment it.
Step for initialization firebase: create script DBAPI.cs (if any).
bool isFirebaseInitialized = false;
void Awake(){FirebaseInit();}
void FirebaseInit()
{
var dependencyResult = await FirebaseApp.CheckAndFixDependenciesAsync();
if(dependencyResult == DependencyStatus.Available)
{
app = Firebase.FirebaseApp.DefaultInstance;
isFirebaseInitialized = true;
// Set a flag here to indicate whether Firebase is ready to use by your app.
}
else
{
UnityEngine.Debug.LogError(System.String.Format(
"Could not resolve all Firebase dependencies: {0}", dependencyStatus));
isFirebaseInitialized = false;
// Firebase Unity SDK is not safe to use here.
}
}
Your answer
Follow this Question
Related Questions
ultility app 0 Answers
How to access a text file from a built unity generated android application 0 Answers
Online level database 2 Answers
[5.4 - Unity2D - Android] UI Button Requires Child Text? 0 Answers
Android Mysql Database online 3 Answers