Application类
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ApplicationTest : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
//游戏数据文件夹路径 只读、加密压缩
Debug.Log(Application.dataPath); //D:/UnityProject/Life/Assets
Debug.Log(Application.dataPath + "txtTest.txt"); //D:/UnityProject/Life/Assets/txtTest.txt
//持久化文件路径
Debug.Log(Application.persistentDataPath);//C:/Users/l1/AppData/LocalLow/DefaultCompany/Life
//streamingAssetsPath文件夹路径 只读、不加密、配置文件
Debug.Log