- Home /
Custom Editor has stopped working
Hi. Yesterday I started learning how to create custom editor in inspector. It was going well, until about an hour ago, when my Unity crashed. It crashed when I changed a rectangle width of the IntSlider(don´t know why). Since then my custom inspector doesn´t even show(the script uses the default inspector design). I tried to fix it. I also tried creting a new editor script in new project and restarting Unity, but it still doesn´t work. Any ideas how to fix this? Thanks
Do any error messages appear in the console window when attempting to select an object which should be using your editor?
Could you paste your editor script using gist.github.com (or the like)? Very hard to diagnose without any code :)
Here it is, but I don´t think it will help, because it was working perfectly until Unity has crashed. The crash appeared when I changed rectangle position x (line 100) from 30 to 33.
Answer by Zamaroth · May 26, 2013 at 10:47 PM
Ok, thanks for responses. I solved the problem. I seems like the editor script got corrupted or something after crash. I made a new editor script and copy/pasted my script. Other editor scripts didn´t work, because I didn´t know that the class name must me the same as the name of the editor script.
Awesome, I am glad that you managed to resolve the issue :)
Your answer
Follow this Question
Related Questions
Can you have a Vector3 variable with rotation controls similar to a Transform? 0 Answers
Custom Inspector "Multi-object editing not supported" 4 Answers
Large sprite display in inspector 0 Answers
Custom Editor and OnSceneGUI 1 Answer
Custom Inspector: For every new element in one array create a brand new array? 0 Answers