Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

Why does the editor crash whenever I select a certain script in the project or object with the same script attached in the hierarchy?

$
0
0
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.

Viewing all articles
Browse latest Browse all 2383

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>