Application.temporaryCachePath 临时数据路径
static var temporaryCachePath : string
Description描述
Contains the path to a temporary data / cache directory (Read Only).
包含一个临时数据/缓存目录的路径(只读)。
The value is a directory path where temporary data can be stored.
该值是一个目录路径,临时数据可以被保存。
C#
JavaScript
using UnityEngine;using System.Collections;public class example : MonoBehaviour {void Awake() {print(Application.temporaryCachePath);}}
// print the path to the temporary data folder//打印路径到临时数据文件夹print (Application. temporaryCachePath);