unity各平台路径
程序员文章站
2022-04-03 22:18:00
...
#if UNITY_ANDROID
_abPath = "jar:file://" + Application.dataPath + "!/assets/AssetBundles/";
#elif UNITY_IPHONE
_abPath = Application.dataPath + "/Raw/AssetBundles/";
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR
_abPath = Application.dataPath + "/AssetBundles/";
#else
_abPath = string.Empty;
#endif