本文共 471 字,大约阅读时间需要 1 分钟。
这里路径pc端是在StreamingAssets下
//不同平台下StreamingAssets的路径是不同的,这里需要注意一下。public static readonly string PathURL =#if UNITY_ANDROID "jar:file://" + Application.dataPath + "!/assets/";#elif UNITY_IPHONE Application.dataPath + "/Raw/";#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX "file://" + Application.dataPath + "/StreamingAssets/";#elif UNITY_STANDALONE_WIN || UNITY_EDITOR Application.dataPath + "/StreamingAssets/";#else string.Empty;#endif
转载地址:http://tghff.baihongyu.com/