- Home /
How do i reference the Firebase User in a script, Unity?
I have a script in a Login Scene where the User is declared and used for LogIn or SignIn to the Firebase account(along a lot of other stuff). But when i say public FirebaseUser User from a script in another scene and try to reffer it it gives me an error NullRefferenceException: Object refference not set to an instance of an object This doesnt happen in the LogIn Scene and i just cant wrap my head around how to fix it. I was thinking of saving the User from the LogIn scene in a PlayerPrefs but i dont think that it will work. I dont know what other info i can give so you can better understand.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How do I create an database to store Question and answers 1 Answer
get_version can only be called from the main thread. 0 Answers
Callback function cannot change game object status,callback function cannot change gameobject status 0 Answers