コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public static void SetExternalScriptEditorArgs(string args)
        {
            string externalScriptEditor = ScriptEditorUtility.GetExternalScriptEditor();

            EditorPrefs.SetString(ScriptEditorUtility.GetScriptEditorArgsKey(externalScriptEditor), args);
        }