I am getting a strange error on the quiz master section of the Unity 2D course if I start running my code only when I have the QuizCanvas object selected on start.
I get two errors immediately:
ObjectDisposedException: SerializedProperty questions.Array.data[4] has disappeared!
type is not a supported pptr value
The strange thing is that this ONLY happens if I have QuizCanvas selected when I press play. If I have another game object selected, the code runs fine. Also, if I have another object selected when I press play, then select QuizCanvas AFTER play, the code still runs fine. See below:
With QuizCanvas selected on play, I have an error
With another object selected on play, no error
For now, I can just make sure I have another object selected, but I am curious why this would occur. I’m also curious if there is a way to fix the issue so that it doesn’t occur. Thanks.