public static string GetExternalScriptEditorArgs() { string externalScriptEditor = ScriptEditorUtility.GetExternalScriptEditor(); string result; if (ScriptEditorUtility.IsScriptEditorSpecial(externalScriptEditor)) { result = ""; } else { result = EditorPrefs.GetString(ScriptEditorUtility.GetScriptEditorArgsKey(externalScriptEditor), ScriptEditorUtility.GetDefaultStringEditorArgs()); } return(result); }
public static string GetExternalScriptEditorArgs() { string externalScriptEditor = ScriptEditorUtility.GetExternalScriptEditor(); ScriptEditorUtility.ScriptEditor scriptEditorFromPath = ScriptEditorUtility.GetScriptEditorFromPath(externalScriptEditor); string result; if (scriptEditorFromPath != ScriptEditorUtility.ScriptEditor.Other) { result = ""; } else { result = EditorPrefs.GetString(ScriptEditorUtility.GetScriptEditorArgsKey(externalScriptEditor), ScriptEditorUtility.GetDefaultStringEditorArgs()); } return(result); }
public static ScriptEditorUtility.ScriptEditor GetScriptEditorFromPreferences() { return(ScriptEditorUtility.GetScriptEditorFromPath(ScriptEditorUtility.GetExternalScriptEditor())); }
public static void SetExternalScriptEditorArgs(string args) { string externalScriptEditor = ScriptEditorUtility.GetExternalScriptEditor(); EditorPrefs.SetString(ScriptEditorUtility.GetScriptEditorArgsKey(externalScriptEditor), args); }