Пример #1
0
    void OnWebRequestDeleteFile(out string outputHtml, NameValueCollection queryString, Stream bodyData)
    {
        outputHtml = null;
        var path = queryString["path"];

        if (string.IsNullOrEmpty(path))
        {
            outputHtml = "アップロードしたファイルのパスが空.";
            return;
        }
        DebugServerUtil.DeleteOverride(path);
        loadRequested = true;
    }
Пример #2
0
    void OnWebRequestDeleteFile(out string outputHtml, string inputText)
    {
        outputHtml = null;
        if (string.IsNullOrEmpty(inputText))
        {
            outputHtml = "入力テキストがない.";
            return;
        }
        var arg = UnityEngine.JsonUtility.FromJson <UploadFileArg>(inputText);

        if (string.IsNullOrEmpty(arg.path))
        {
            outputHtml = "消したファイルのパスが空.";
            return;
        }
        DebugServerUtil.DeleteOverride(arg.path);
        // 再度ロード
        StartCoroutine(CoLoad());
    }