将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;
}
将程序打包到 桌面/图片 的文件夹下面,输出结果