// This method creates the button to run the RefreshAllScriptableObjects method in the // Refresh script. public override void OnInspectorGUI() { DrawDefaultInspector(); Refresh refreshAssets = (Refresh)target; if (GUILayout.Button("Refresh Assets")) { refreshAssets.RefreshAllScriptableObjects(); } }