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

Unity Editor does not work

$
0
0
**This question has been translated into English by [Google Translate][1]. The original is [here][2].** During code execution: void OnCollisionEnter() { Sphere.SetActive(false); Renderer REND = GetComponent(); if (REND.material.color == new Color(1, 0, 0)) { SphereCounter.Performed[SphereCounter.MissionProgress] = RGB.Red; SphereCounter.MissionProgress++; } else if (REND.material.color == new Color(0, 1, 0)) { SphereCounter.Performed[SphereCounter.MissionProgress] = RGB.Green; SphereCounter.MissionProgress++; } else if (REND.material.color == new Color(0, 0, 1)) { SphereCounter.Performed[SphereCounter.MissionProgress] = RGB.Blue; SphereCounter.MissionProgress++; } } Unity stops responding and writes: ![][3] If debugged, it will be: ![][4] Then VS opens and writes: ![][5] ![][6] If click "Continue", it will be: ![][7] What is the problem here and how can I fix it? *P.S. Reinstall Unity* *P.P.S. Did not help* [1]: https://translate.google.com/ [2]: https://ru.stackoverflow.com/questions/1260003/%d0%9f%d1%80%d0%be%d0%b3%d1%80%d0%b0%d0%bc%d0%bc%d0%b0-unity-editor-%d0%bd%d0%b5-%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0%d0%b5%d1%82 [3]: https://i.stack.imgur.com/Ixe25.png [4]: https://i.stack.imgur.com/xvHXu.png [5]: https://i.stack.imgur.com/TGInZ.png [6]: https://i.stack.imgur.com/E7XKG.png [7]: https://i.stack.imgur.com/R8VAy.png

Viewing all articles
Browse latest Browse all 2383

Trending Articles