Exemplo n.º 1
0
        //---------------------------------------------------------------------
        public string getWWWStreamingAssetsPath()
        {
            string assetbundlePath =

#if UNITY_EDITOR
                "file:///" + Application.streamingAssetsPath;
#elif UNITY_IPHONE
                "file:///" + Application.streamingAssetsPath;
#elif UNITY_ANDROID
                "jar:file://" + Application.dataPath + "!/assets";
#endif

            assetbundlePath += "/" + EditorModeRunsourcesPlatform.ToString();

            return(assetbundlePath);
        }
Exemplo n.º 2
0
        //---------------------------------------------------------------------
        public string getStreamingAssetsPath()
        {
            string assetbundlePath =

#if UNITY_EDITOR
                Application.streamingAssetsPath;
#elif UNITY_IPHONE
                Application.streamingAssetsPath;
#elif UNITY_ANDROID
                Application.streamingAssetsPath;
#endif

            assetbundlePath += "/" + EditorModeRunsourcesPlatform.ToString();

            return(assetbundlePath);
        }