Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Does your editor misbehave, hard crash on string compares, and refuse to drag n drop objects into your scene?
- * Use this menu item, it could be the cause of your misfortunes.
- */
- [MenuItem("Coding Jar/Fix FallbackEditor Windows")]
- static void FixFallbackEditorWindows()
- {
- var type = Types.GetType( "UnityEditor.FallbackEditorWindow", "UnityEditor" );
- var allEditorWindows = Resources.FindObjectsOfTypeAll( type );
- foreach( var wind in allEditorWindows )
- {
- Object.DestroyImmediate( wind, true );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment