您的位置:首页 > 移动开发 > Unity3D

unity3d ios android pc path

2013-11-20 14:37 267 查看

#if UNITY_EDITOR   

        string filepath = Application.dataPath +"/StreamingAssets"+"/my.xml";   

        

#elif UNITY_IPHONE   

      string filepath = Application.dataPath +"/Raw"+"/my.xml";   

        

#elif UNITY_ANDROID   

      string filepath = "jar:file://" + Application.dataPath + "!/assets/"+"/my.xml;   

        

#endif
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Unity3d android iphone