大约有 41 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
...需要精确到建模射线检测, 直接使用全局触控即可 var _self = this; document.addEventListener("mousedown",function(event){_self.onActDown(event);},false); document.addEventListener("mouseup",function(event){_self.onActUp(event);},false); document.addEventListener( 'touchstart', fu...
来源: Laya_社区 发布时间: 20180114
... Laya.Tween.to(this,{alpha:1},200); self.panel_room.hScrollBar.value = 432; console.log("self.panel_room.hScrollBar.value " + self.panel_room.hScrollBar.value); 这里打印出来一直是 默认值 1 2019-01-08 0 1 分享 微博 QZONE 微信 为什么被折...
来源: Laya_社区 发布时间: 20190108
... } if(this.heartbeatId) { // already in a heartbeat interval return; } var self = this; self.heartbeatId = Laya.timer.once(self.heartbeatInterval,self, function() { self.heartbeatId = null; self.send(obj); self.nextHeartbeatTimeout = Date.now() + self.heartbeatTimeout; self.heartbeatTimeoutId = self...
来源: Laya_社区 发布时间: 20180119
...止?除了暂停函数外 这是一个全屏公告 laya.utils.Tween.to(self.richText, { x: 0 }, 10000, null, laya.utils.Handler.create(self, self.onTween1)); 然后执行游戏里面代码的时候有时候会卡住不动,没报错,非必现。 //播开始动画 var kaishi = new StartAnimVi...
来源: Laya_社区 发布时间: 20200113
...er.getComponent(Laya.RigidBody); cil.enabled=false; rig.enabled=false; var self:Laya.Sprite= this.owner as Laya.Sprite; var ni:Laya.Animation=new Laya.Animation(); self.addChild(ni); self.texture=null; ni.source='baozha/baozha_0.png,baozha/baozha_1.png,baozha/baozha_2.png,baozha/baozha_3.png,baozha/...
来源: Laya_社区 发布时间: 20190721
...以精简下,如下 //向上滑动效果 _pro.shang = function (){ var self = this; num++; if(num==1){ Haha(this.loadnew1,-1030,300,0,100,0); Haha(this.loadnew2,0,300,1,500); Haha(this.loadnew3,1030,300,0,500); } if(num==2){ Haha(this.loadnew1,-2060,300,0,100); Haha(this.loadnew2,-1030,300,0,500);...
来源: Laya_社区 发布时间: 20170626
...ker. 新建一个my_task.js文件,放到js文件夹下,代码如下: self.addEventListener('message', function (e) { var xmlreq = new XMLHttpRequest(); xmlreq.responseType = "text"; xmlreq.onload = function (e) { var data = e.currentTarget.response; self.postMessage(data); } xmlreq.open("get",...
来源: Laya3.0_文档 发布时间: 20251010
...ole.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata; //实例化角色容器 var foodBox = new Laya.Sprite(); //添加到舞台上 console.log(self.foodBox); Laya.stage.addChild(foodBox); self.foodBox = fooddata; console.log(self.foodBox);...
来源: Laya_社区 发布时间: 20181221
...e worker. ``` 新建一个my_task.js文件,代码如下: ```typescript self.addEventListener('message', function (e) { var xmlreq = new XMLHttpRequest(); xmlreq.responseType = "text"; xmlreq.onload = function (e) { var data = e.currentTarget.response; self.postMessage(data); } xmlreq.open("get",...
来源: Laya2.0_文档 发布时间: 20210715
...稍后会失效,无法访问 oppo技术客服给出解决方案: let self: any = this; this.btn.onClick(function () { (Laya.Browser.window as any).jsb.loadImage( "https://sh.mudgj.com/api/playe ... ot%3B, (info: any) => { var filePath = Laya.PAL.g.saveImageTempSync({ data: info.data, width: i...
来源: Laya_社区 发布时间: 20250818