unity应用程序路径

unity应用程序路径

应用程序内容路径

public static string AppContentPath()
{
string path = string.Empty;
switc(Application.platform)
{
case RuntimePlatform.Android:
path=“jar:file://”+Application.dataPath+"!/assets/";
break;
case RuntimePlatform.Android:
path=Application.dataPath+"!/Raw/";
break;
case RuntimePlatform.Android:
path=Application.dataPath+“Resources/Data/StreamingAssets”;
break;
default:
path="Application.dataPath+“StreamingAssets/”;
break;
}
}

你可能感兴趣的:(unity应用程序路径)