大约有 78 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
...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
...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
...止?除了暂停函数外 这是一个全屏公告 laya.utils.Tween.to(self.richText, { x: 0 }, 10000, null, laya.utils.Handler.create(self, self.onTween1)); 然后执行游戏里面代码的时候有时候会卡住不动,没报错,非必现。 //播开始动画 var kaishi = new StartAnimVi...
来源: Laya_社区 发布时间: 20200113
... worker. ``` 新建一个my_task.js文件,代码如下 ```javascript 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
...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
... } 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
...onal onTriggerEnter onTriggerEnter(other: PhysicsComponent | ColliderBase, self?: ColliderBase, contact?: any): void Defined in laya/components/Script.ts:58 3D物理触发器事件与2D物理碰撞事件,开始碰撞时执行 Parameters other: PhysicsComponent | ColliderBase Optional self: Collide...
来源: Laya3.0_api 发布时间: 20231115
layaair2d的sprite的鼠标右键事件无效 self.getSprite().on(Event.MOUSE_DOWN, self, function (e) { console.log(e)鼠标左键点击有效果,但是右键无效果 附件 : --> 2022-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20220517
... 赞同来自: 碰撞后产生三个参数: onTriggerEnter(other: any, self: any, contact: any): void { console.log(other); //被碰撞的对象 console.log(self); //自己 console.log(contact); //连接点对象, contact.getHitInfo(); //这里有碰撞点的信息 } 官方文档不全,或...
来源: Laya_社区 发布时间: 20181026
... (laya.core.min.js:1) at CreateGuai.js:103 a372853273 • 2018-02-10 12:12 self.filters = []; 给怪物添加滤镜,取消后再添加,多操作几次就这样了。 qian • 2018-02-10 12:13 你看看是不是中英文括号的语法什么的问题 qian • 2018-02-10 12:14 多操作几次有...
来源: Laya_社区 发布时间: 20180210