Unity打包后的路径问题

将untiy程序打包到PC端,Application类下的路径问题

    void Start()
    {
        text = transform.Find("Text").GetComponent<Text>();
        text.text = "temporaryCachePath:" + Application.temporaryCachePath;
        text.text += "\r\n";
        text.text += "dataPath:" + Application.dataPath;
        text.text += "\r\n";
        text.text += "streamingAssetsPath:" + Application.streamingAssetsPath;
        text.text += "\r\n";
        text.text += "persistentDataPath:" + Application.persistentDataPath;
        text.text += "\r\n";
        text.text += "consoleLogPath:" + Application.consoleLogPath;
    }

将程序打包到 桌面/图片 的文件夹下面,输出结果
image

posted @ 2021-09-08 15:27  Exceedingly  阅读(999)  评论(0)    收藏  举报