Any error in code any makes all custom editor scripts disappear?

Hi, we are currently working on an EditorWindow that is functioning quite well, however, if for instance i am coding something else, lets say a Health.cs script for the game, and i have some sort of syntax error in it, ALL our custom editor scripts and windows disappears/turns to “Failed to load”, why is that?

As soon as we fix our error in the Health.cs script, we can reopen all our custom editor windows. Please help! :slight_smile:

Thanks.

Hey there,

Make sure your Editor scripts are in an Editor folder. It sounds like they are being compiled with your runtime code. If this is the case when you have compile errors your breaking the compiled assembly that both your runtime and edit time code are in. This would make all your editor windows break until you fix your errors.

Cheers,

1 Like

This is a bug in 5.3.4p4+. It’s not fixed yet (as of 5.3.5p2).

1 Like