Application翻译:^牛^魔王
- absoluteURL
- backgroundLoadingPriority
- CancelQuit
- CanStreamedLevelBeLoaded
- CaptureScreenshot
- dataPath
- ExternalCall
- ExternalEval
- GetStreamProgressForLevel
- internetReachability
- isEditor
- isLoadingLevel
- isPlaying
- isWebPlayer
- levelCount
- loadedLevelName
- loadedLevel
- LoadLevelAdditiveAsync
- LoadLevelAdditive
- LoadLevelAsync
- LoadLevel
- LogCallback
- OpenURL
- persistentDataPath
- platform
- Quit
- RegisterLogCallbackThreaded
- RegisterLogCallback
- runInBackground
- srcValue
- streamedBytes
- systemLanguage
- targetFrameRate
- temporaryCachePath
- unityVersion
- webSecurityEnabled
Application.persistentDataPath 持久数据路径
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);
最后修改:2011年4月16日 Saturday 13:35