public override void OnInspectorGUI() { DrawDefaultInspector(); ResourceTracker myScript = (ResourceTracker)target; if (GUILayout.Button("SetUpSheet")) { myScript.GatherData(); } }