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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM