大约有 428 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
Laya_社区(345) Laya2.0_文档(27) Laya3.0_api(21) Laya3.0_文档(13) Laya2.0_示例(9) Laya_示例(9) laya_api(2) Laya2.0_api(2)
...资源 this.assets.push({ url: "lobby/zhujiemian_ditiao.png", type: Laya.Loader.IMAGE }); Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false)); 在加载的时候ios的微信小游戏是没有问题的,但是到...
来源: Laya_社区 发布时间: 20180824
..."; var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0); Laya.stage.ad...
来源: Laya_社区 发布时间: 20180808
...白 想要用basepath加载图集到我的网络地址这样写对吗 Laya.loader.load(["res/atlas/comp.atlas"]); Laya.URL.basePath="http://192.168.6.143:8080"; 2018-12-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20181211
...加载资源 例如var resarray = [ {"url":"res/atlas/common.json","type":Loader.ATLAS}, ]; Laya.loader.load(resarray, Handler.create(this, this.preloadLoaded), Handler.create(this, this.onProgress,null,false)); 这个时候这个资源是通过app本地加载还是网上加载的? 2.dcc 有之前...
来源: Laya_社区 发布时间: 20161204
...加载的时候都会重新加载图片 我用的语言是JS来写,用Laya.loader.load进行预加载,放数组url路径,在progress哪里做一个加载完成进度事件,其他参数默认原有的配置,甚至修改缓存为true ,强制加载为false,但是仍然没有效果 每次都...
来源: Laya_社区 发布时间: 20170217
...,bitmap被销毁以后cache。将recoverBitmap修改cache住,然后将Loader中的textureMap加进来就可以了。 还要吐槽一句,为什么不在公告上说出来?我翻了所有的更新记录没有看到相关的,但是代码里却改了,真的服气。
来源: Laya_社区 发布时间: 20191105
...l/"; MiniAdpter.nativefiles=[ "res/media/", "prefab/bb.json" ] Laya.Loader.load(...../); 2019-09-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 只有在微信小游戏中才有...
来源: Laya_社区 发布时间: 20190902
如何把加载好的二进制数据转成Texture? 通过Loader加载好文件,得到Byte,怎么创建Texture? 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 如果你...
来源: Laya_社区 发布时间: 20170502
...); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.st...
来源: Laya_社区 发布时间: 20180314
... var lobbyRes:Array<any> = [ {url: "Lobby/Sound/BG309.mp3",type:Laya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20170925