public override void OnInspectorGUI() { DrawDefaultInspector(); SaveManager myScript = (SaveManager)target; if (GUILayout.Button("Clear All Data", GUILayout.Width(100))) { myScript.ClearFile(); } }