MissingReferenceException after scene reload
I've got a problem with Unity IAP. When I load my game scene everything works fine, i can buy every IAP that i want. But when i go back to main menu, reload my game scene and then try to buy something Unity shows in console:
MissingReferenceException: The object of type 'Text' has been destroyed but you are still trying to access it.
Strangely, object that this error refers to, works just fine with another method. What is wrong here? Can it happen because of Serialize Fields? The object of type 'Text' from error is Serialize Field assigned in inspector. I would really appreciate some help here.
Your answer
Follow this Question
Related Questions
Trying to reference a float, but it wont work? 1 Answer
MissingReferenceException when reloading level 0 Answers
After Reloading scene, reference is switched to another refrence 1 Answer
Getting trouble in migrating the Unity IAP old version to new version of IAP in existing project 0 Answers
[Help] how do I reference/access another script in unity C# 2 Answers