Unity was crashing whenever I select a particular script in the project view or object with the script attached in the hierarchy view. It would crash by freezing as soon as I made the selection and then eventually unity would close. The editor logs showed nothing regarding the crash. I systematically found that it was a particular field in the class which was causing the problem. Eventually I found the answer which is to do with recursive field types in classes that inherit from MonoBehaviour. I will post the solution and select as the correct answer. Just wanted to let others know as there does not appear to be any information I have found on this issue anywhere else online.
↧