在做Unity安卓的文件序列化和反序列化的时候,用到了路径:Application.persistentDataPath,但是查找起来很麻烦
用到编译器扩展的方式,以下代码,快速定位
using UnityEngine;
using UnityEditor;
public class FindData : MonoBehaviour
{
[MenuItem("Assets/Open PersistentDataPath")]
// Start is called before the first frame update
static void Open()
{
EditorUtility.RevealInFinder(Application.persistentDataPath);
}
}