#Unity Play Mode starting frozen

1 messages · Page 1 of 1 (latest)

cunning mauve
#

Hi there, I'm having an issue where when I hit Play Mode the Game window is just completely frozen. Weirdly too, if I'm in Scene view it doesn't switch over to Game view automatically, nor does using "Play Maximised" work (the window remains small). I've checked out previous git commits and that hasn't fixed the issue so I'm a little baffled. I am getting the error message:

"InvalidOperationException: Collection was modified; enumeration operation may not execute."

but again reverting commits isn't fixing the issue so it shouldn't be anything to do with code. This is happening in every scene.

Update: Clearing the above error did not fix the issue.

kindred tusk
# cunning mauve Hi there, I'm having an issue where when I hit Play Mode the Game window is just...

Learn how to handle the 'Collection was modified; enumeration operation may not execute' error in C#. This article provides insights and solutions for effective error handling.

cunning mauve
kindred tusk
#

If you are not sure where illegal operation is happening, you can turn off scripts and introduce them gradually.

#

But really stack trace should point right at it.