public override void OnInspectorGUI()
    {
        RevertLodMerge _target = (RevertLodMerge)target;

        if (_target.original == null)
        {
            try
            {
                Undo.DestroyObjectImmediate(this);
            }
            catch
            {
            }
            return;
        }
        else
        {
            SerializedProperty original_s     = serializedObject.FindProperty("original");
            SerializedProperty texutrePath_s  = serializedObject.FindProperty("texutrePath");
            SerializedProperty materialPath_s = serializedObject.FindProperty("materialPath");

            GUI.enabled = false;
            EditorGUILayout.PropertyField(original_s, new GUIContent("Original Grp Reference"));
            EditorGUILayout.PropertyField(texutrePath_s, new GUIContent("texutrePath Reference"));
            EditorGUILayout.PropertyField(materialPath_s, new GUIContent("materialPath Reference"));
            GUI.enabled = true;

            GUI.color = new Color(1, 0.3f, 0.3f);
            if (GUILayout.Button("Revert"))
            {
                LodMerge lodMerge = (LodMerge)EditorWindow.GetWindow(typeof(LodMerge), true);
                lodMerge.Revert(_target);
            }
        }
    }
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        LodMerge window = (LodMerge)EditorWindow.GetWindow(typeof(LodMerge));

        window.Show();
    }