• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 719 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)

321. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 71%]

...与内容相关的链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     ...

来源: Laya_社区 发布时间: 20170221

322. soundmananger会重复加载音效好多次 [ 71%]

...加载prefab 小游戏项目 加载有中文的json文件 报错 请问下loader如何强制加载一个文件,避免浏览器的缓存 List滑动条会引起单元格上的按钮点击后多次触发点击事件 问题状态 最新活动: 2018-06-15 16:38 浏览: 1519 关注: 2 人 ayiui4566 • ...

来源: Laya_社区 发布时间: 20180615

323. 缓存,数据库,PlayerPrefs [ 71%]

...动画失败 请教下微信小游戏的内存和数据缓存? 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小游戏只缓存图片和声音 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 关...

来源: Laya_社区 发布时间: 20180718

324. 在加载包含Animation的prefab后,动画没有显示 [ 70%]

...动画进行单独处理?还是不允许把动画放进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.S...

来源: Laya_社区 发布时间: 20201022

325. 微信小游戏报错 the .lh file root type must be Scene [ 70%]

...) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:62629/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at L...

来源: Laya_社区 发布时间: 20180323

326. putimagedata 不起作用 [ 70%]

...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.po...

来源: Laya_社区 发布时间: 20171130

327. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 70%]

...p=Sprite3D&name=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/three...

来源: Laya2.0_文档 发布时间: 20210715

328. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 70%]

...量加载json文件,然后等这些文件统一加载完后回调 看了Loader类的用法好像只能加载单一文件,LoaderManager用于批量加载可官网没有DEMO,并不知道怎么用。有大佬能给出个LoaderManager的使用示例么。或者再详细能否讲下Loader 和 Loade...

来源: Laya_社区 发布时间: 20180518

329. loader callback cost a long time:187 这个提示是因为什么? [ 70%]

loader callback cost a long time:187 这个提示是因为什么? loader callback cost a long time:187 url=D:/Users/Administrator/Documents/LayaDemo2/bin/Effect/E_bsd_skill2/Assets/E_SnowQueen_binglengqianghua_bingshuang1.png 这个图片29K,也不大啊 2017-05-10 添加评论 免费帖 --> ...

来源: Laya_社区 发布时间: 20170510

330. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 70%]

...prite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 //用loader来加载url Laya.loader.load(url,Laya.Handler.create(this,showImg,[url]),null,Laya.Loader.IMAGE); } function errorHandler(url){ var t = new Laya.loader.getRes(url); var ape = new Laya.Sprite(); ape.graphics.drawTexture...

来源: Laya2.0_文档 发布时间: 20210715