Unity3D 移动平台的资源路径问题

这里路径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

你可能感兴趣的:(项目bug)