If you’re trying to write custom editors in Unity you may run into a snag. I just spent several hours hitting my head against a wall trying to solve this issue. When you enter play mode, Unity will reload all mono assemblies. This means that your EditorWindow object is recreated, and you will need to… Read more »