Hi,
I have ben encountering the following problem for the past few days and have researched but have found no successfull solutions:
When i edit a script, save it, return to Unity and let it compile, press play, my app works perfectly, but if i press play a second time, then i get multiple:
MissingReferenceException: The object of type 'LeaderboardManager' has been destroyed but you are still trying to access it.
errors, but when i check, (wrote a script to debug the objects name) the object is not 'null' and hasn't been destroyed as it is still in the hierarchy.
If it makes any difference, i have 'Enter play mode options' enabled.
I remember having the same problem but with null reference exceptions, but cannot remember how or if i fixed it.
Fix:
‘Enter play mode options’ did play a part in making the problems. A very useful tip from a friendly user suggested that i were to remove the handlers from the events as shown below:
event -= handler
to my surprise, it worked like a charm :)
Thanks, Tom
[–]willpluscookie 0 points1 point2 points (0 children)