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

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

11. Dialog 关闭效果无效 [ 90%]

...ll, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on close effect") this.close(); } return CommonDlg; })(Laya.Dialog);console.log并未输出任何东西 2017-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

12. 加载-加载序列 [ 90%]

...setLoaded), null, null, 2, false); })(); function onAssetLoaded(texture) { console.log(texture.source); // 恢复默认并发加载个数。 if (++numLoaded == 3) { Laya.loader.maxLoader = 5; console.log("All done."); } } })();module laya { import Texture = Laya.Texture; import Handler = Laya.Handle...

来源: Laya_示例 发布时间: 20251130

13. 加载-加载序列 [ 89%]

...is, this.onAssetLoaded), null, null, 2, false); } onAssetLoaded(texture) { console.log(texture.url); // 恢复默认并发加载个数。 if (++numLoaded == 3) { Laya.loader.maxLoader = 5; console.log("All done."); } } } new Loader_Sequence();module laya { import Texture = Laya.Texture; import Handl...

来源: Laya2.0_示例 发布时间: 20251130

14. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 88%]

...存二进制文件,逻辑如下:   public Request(url:string):void { console.log("url: " + url); if (Laya.Browser.onMiniGame) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter.downLoad...

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

15. 关闭指定定时器timer [ 88%]

... }); //转动逻辑 function round(){ tlate.rotation+=roundTurnChange(1); console.log(tlate.rotation); } //转动变量变化 function roundTurnChange(type){ //减速阶段 roundTurn-=0.05; if(roundTurn<=0.3){ console.log("*************************************************88"); Laya.time...

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

16. websocket请教下,服务器发送过来的数据怎么获取 [ 87%]

...过来的数据怎么获取 private openHandler(event: any = null): void { console.log(`平台 正确建立连接`); this.socket.send("getScore"); } private receiveHandler(msg: any = null,data): void { console.log(`接收到数据触发函数:` + msg); ///////////////////////////////////////////////...

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

17. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 87%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 [Laya2.0 3D] 2.0正式版上存在某些骨骼动画无法播放,U3D和1.7.*都没问题 dialog 自定义关闭效果,效果执行完,弹窗无法关闭 ...

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

18. RopeJoint代码动态创建 无法设置otherbody [ 87%]

...mponent(Laya.RopeJoint);         this.rope.otherBody=lala;         console.log(lala);         let collider:Laya.CircleCollider=this.owner.getComponent(Laya.CircleCollider);         this.rope.otherAnchor=["540","1060"];         this.rope.maxLength=286;         console.log(this...

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

19. websocket连接出错 [ 87%]

...r(app); var io = require('socket.io').listen(server); server.listen(8888); console.log("服务器启动"); io.on('connection', function (ws) { console.log('客户端连接成功!'); ws.on('foo', function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> &l...

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

20. 图片添加点击事件 有的不生效 [ 85%]

...nFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 private onClickBtnBoy():void { console.log("click onClickBtnBoy"); } private onClickBtnFriend():void { console.log("click onClickBtnFriend"); } private onClickBtnShop():void { ...

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