static var persistentDataPath : string
Description描述
Contains the path to a persistent data directory (Read Only).
包含一个持久数据目录的路径(只读)。
The value is a directory path where data expected to be kept between runs can be stored.
该值是一个目录路径,数据预计将保持运行,可以被储存。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Awake() {
print(Application.persistentDataPath);
}
}
// print the path to the persistent data folder
//打印该路径到持久数据文件夹
print (Application. persistentDataPath);