大约有 655 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
...ion 的createFrames 使用已经加载的图集缓存动画失败 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2018-07-02 11:46 浏览: 907 关注: 2 人 差不多先生 • 2018-07-02 11:50 Laya 场景通过create之后 下载的数据有没有...
来源: Laya_社区 发布时间: 20180702
...以在Laya.MiniAdpter.getFileList()查找到对应缓存 但使用Laya.loader.load预加载图片与atlas时,图片可以正常从usr/layaairGame/中读取 atlas文件依旧从远程读取 如何使atlas从本地路径读取? (虽然atlas文件尺寸不大,但这样不能离线运行...
来源: Laya_社区 发布时间: 20180825
...est() { //初始化引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffc...
来源: Laya2.0_文档 发布时间: 20210715
...aya.utils.Timer; import laya.display.Sprite; import laya.net.Loader; import laya.ui.TextArea; import laya.resource.Texture; import laya.maths.Point; import laya.utils.Tween; import laya.d3.resource.models.PrimitiveMesh; import laya.debug.DebugP...
来源: Laya_社区 发布时间: 20170921
...载资源,此处添加button和panel垂直滚动条的皮肤使用 Laya.loader.load(['button-4.png','ui/vscroll.png','ui/vscroll$bar.png','ui/vscroll$down.png','ui/vscroll$up.png'],Handler.create(this,start)); } private function start():void { var panel:Panel=new Panel();//添加panel,切忌要...
来源: Laya_社区 发布时间: 20170601
...域加载图片 发布到vivo平台后,龙骨动画无法显示 请问下loader如何强制加载一个文件,避免浏览器的缓存 点击代码编辑模器 就提示无法打开代码编辑器 请配置 这个怎么解决? 问题状态 最新活动: 2020-09-23 15:11 浏览: 7047 关注: 7 ...
来源: Laya_社区 发布时间: 20200529
...正确获取宽高。 1. **直接调用size设置:** ```typescript Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.hei...
来源: Laya2.0_文档 发布时间: 20210714
...encoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180704
...).png"); } let nt = Date.now(); Laya.loader.load( loadList, Laya.Handler.create(this, () => { var label=this.owner.getChildByName("time") as Laya.Label; label.text=((Date.now(...
来源: Laya_社区 发布时间: 20240628
...本1.7.15beat 资源管理的问题 问题描述: 1.官方是没有提供loader加载外部资源的策略吗? 如果有怎么使用? 2使用1.7.15beat ide发布版本管理文件被重命名后,本地4M资源中layaNativeDir 里面的资源会加载不到! 我找到的问题: 1.我只能通...
来源: Laya_社区 发布时间: 20180118