When I change to another scene and later return to the previous one, in the last I have an object with some prefab properties missing but not all. Why this is happening?
The inspector looks the same before and after, but the code says the property is null.
I thought this could be a “race condition” related issue. So I added this whole logic:
Also, I set the Script Execution Order this way:
But you can wait many minutes and nothing is going to change.
Most of the prefab properties are missing, but that’s not the case for “Media Content Prefab”.