Application.temporaryCachePath

切换到手册
public static string temporaryCachePath ;

描述

包含临时数据/缓存目录的路径(只读)。

值为可存储临时数据的目录路径。

using UnityEngine;

public class Example : MonoBehaviour { void Start() { // print the path to the temporary data folder print(Application.temporaryCachePath); } }