/// <summary> /// Attempts to save the static reference of the controller /// </summary> static void Save() { // This can only be true if the editor is going into playmode if (!Application.isPlaying && EditorApplication.isPlayingOrWillChangePlaymode) { IOHandler.SaveController(); } }
/// <summary> /// Function for when the editor saves /// </summary> /// <param name="paths"> array of asset information</param> /// <returns> the array of paths unmodified</returns> static string[] OnWillSaveAssets(string[] paths) { IOHandler.SaveController(); return(paths); }