using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
using System;
using System.IO;
//根据当前平台返回资源目录
public static string AppContentPath()
{
string path = string.Empty;
switch (Application.platform)
{
case RuntimePlatform.Android:
path = Application.persistentDataPath;
break;
case RuntimePlatform.IPhonePlayer:
path = "file://" + Application.dataPath + "/Raw/";
break;
default:
path = Application.streamingAssetsPath;
break;
}
return path;
}
unity3d获取各平台资源目录
最新推荐文章于 2020-12-18 23:37:44 发布