首页
论坛
新职位
搜索论坛
什么's new
新职位
新的个人资料帖子
最新活动
会员
目前的访客
新的个人资料帖子
搜索个人资料帖子
VB.NET社区
登录
登记
什么's new
搜索
搜索
仅搜索标题
经过:
新职位
搜索论坛
Menu
Log in
Register
安装应用
安装
首页
论坛
C#
第三方产品
为什么我无法在persistentDataPath的统一Android游戏中找到字体福彩12选5走势图(.ttf)?
您正在使用过期的浏览器。它可能无法正确显示此网站或其他网站。
您应该升级或使用
替代浏览器
.
回复主题
信息
[QUOTE ="Duvyanshu,邮政:14696,成员:12464"] 有人可以指引我正确的方向吗?我在VS 2017上使用C#在united 2018.4.9上制作的Android游戏无法检测到持久数据路径中的福彩12选5走势图。 The two font files are located in the persistent data path directory. [URL='//i.stack.imgur.com/pCLp2.jpg']This is a screenshot of app persistent data folder.[/URL] 这是我的代码,用于查找两个字体福彩12选5走势图。 [CODE = csharp]字符串fontpath1 = Application.streamingAssetsPath +"/LEOPALMHINDI15K710.TTF"; 字符串fontpath2 = Application.streamingAssetsPath +"/LEOPALMHINDI14K240.TTF"; //检查字体1是否存在 如果(File.Exists(fontpath1)) { Debugtext.text += "true1\r\n"; } 否则如果(!File.Exists(fontpath1)) { Debugtext.text += "false1\r\n"; } //检查字型2是否存在 如果(File.Exists(fontpath2)) { Debugtext.text += "true2\r\n"; } 否则如果(!File.Exists(fontpath2)) { Debugtext.text += "false2\r\n"; } //第三福彩12选5走势图(存在图像福彩12选5走势图) 如果(File.Exists(Application.persistentDataPath +"/FullShot.jpg")) { Debugtext.text += "trueIM\r\n"; } 否则if(!File.Exists(Application.persistentDataPath +"/FullShot.jpg")) { Debugtext.text += "falseIM\r\n"; } Debugtext.text + = Application.persistentDataPath; [/ CODE] Debugtext.text是一个文本框,它显示三个福彩12选5走势图的结果:a)字体福彩12选5走势图1 b)字体福彩12选5走势图2 c)图像福彩12选5走势图 福彩12选5走势图1和2的调试跟踪始终为false,而映像福彩12选5走势图在打开时返回true。's present. 这些字体福彩12选5走势图使用UnityWebRequest使用以下代码从流路径下载到持久路径: [CODE = csharp]字符串fontpath1 = Application.streamingAssetsPath +"/LEOPALMHINDI15K710.TTF"; 字符串fontpath2 = Application.streamingAssetsPath +"/LEOPALMHINDI14K240.TTF"; //Request Font1 UnityWebRequest request = UnityWebRequest.Get(fontpath1); request.SendWebRequest(); 而(!request.isDone) { } System.IO.File.WriteAllBytes(Application.persistentDataPath +"/LEOPALMHINDI15K710.TTF",request.downloadHandler.data); //Request Font2 UnityWebRequest font2 = UnityWebRequest.Get(fontpath2); font2.SendWebRequest(); 而(!font2.isDone) { } System.IO.File.WriteAllBytes(Application.persistentDataPath +"/LEOPALMHINDI14K240.TTF",font2.downloadHandler.data); [/ CODE] 福彩12选5走势图已下载并正确写入了持久数据路径,即存储/模拟/0/Android/data/com.appname.com/files(在跟踪中进行了交叉检查)。 为什么找不到这两个字体福彩12选5走势图并返回false,而同一路径中的其他福彩12选5走势图返回true? 请任何人帮助我修复它。我要找到这两个字体福彩12选5走势图。 [/QUOTE]
Insert quotes…
确认
发表回复
首页
论坛
C#
第三方产品
为什么我无法在persistentDataPath的统一Android游戏中找到字体福彩12选5走势图(.ttf)?
本网站使用Cookie来帮助个性化内容,调整您的体验并在注册时保持登录状态。
继续使用本网站,即表示您同意我们使用cookie。
接受
了解更多…
最佳
底部