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

大约有 698 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0039 秒)

271. timeline播放完成Bug [ 56%]

...; ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', this, function() { ape.x = 0; tl.reset(); tl.to(ape, { x: 100 }, 1000); tl.play(); }); tl.to(ape, { x: 100 }, 1000); tl.play(); })); } } new Sprite_DisplayImage();第二次播放会停止. 红框处执行顺...

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

272. Laya.Animator 动画 怎么移动到某一帧并停止到这一帧?相当于 gotoAndStop() 函数的效果 [ 56%]

...相关的链接 提交 1 个回复 ymsdandan 赞同来自: 你先用timer.once()和ani,stop()方法试试吧,之后我们会对帧动画这方面进行改进 2017-11-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 avpvsdoom 相关问...

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

273. List的selectHandler 点击同一个item只能触发一次回调 [ 55%]

...另一个irem B后再点item A,,item A才会回调. handler的第4个参数once设的是false 附件 : --> 2019-03-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 引擎设计的就是 ...

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

274. 射线一直无法获取物体 [ 55%]

...var qb_pet = scene.addChild(Laya.Sprite3D.load("./test.lh"));     qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){         qb_pet.addComponent(Laya.SphereCollider);     });   设置射线:    Laya.timer.frameLoop(1, null, checkHit);     var hit = new Laya.RaycastHit();    ...

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

275. t._addReference is not a function [ 55%]

...y插件导出的场景 physics3D is not a function Uncaught TypeError: tex.once is not a function 在做微信小游戏排行榜提示wx.getFileSystemManager is not a function at api readFile fail callback function 用微信开发者调试的时候出现document.createTextNode is not a function ide...

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

276. 遇到个很奇怪的问题,不同层级用graphics绘制的背景,会被清除 [ 55%]

...问题,不同层级用graphics绘制的背景,会被清除 Laya.timer.once(1000, this, function (u: Laya.Sprite, _index) { Laya.stage.removeChild(u); }, [txt, index]);  当上面清除指定节点的时候,会清掉其他节点用graphics绘制的数据   微信打开浏览器打开和chrome...

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

277. drawToCanvas转出图片与游戏内显示颜色差距过大 [ 55%]

...tage.addChild(new Laya.Image('comp/img/img1.png'));         Laya.timer.once(1000, this, this.delayShow);     }     delayShow() {         let canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0);         let str = canvas.toBase64('image/png', 1);           ...

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

278. 2.0.1beta ctx.getImageData is not a function [ 55%]

...d api readFile success callback function undefined Uncaught TypeError: tex.once is not a function ide导出ui时,UI代码显示不正常在小游戏中会报错:gameThirdScriptErrorn.sort is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 打地鼠发布成微...

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

279. 资源加载清除问题 [ 55%]

...        sp.graphics.drawTexture(e);             Laya.timer.once(1000, this, function():void             {    trace("clear")                 Loader.clearRes(mapBit, true);}             );         }   如果把延时里面的方法改成Loader.cle...

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

280. laya.media.Sound [ 55%]

...:void 加载声音。 Sound off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 ...

来源: Laya2.0_api 发布时间: 20190513