大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
...ot read property '_tf' of null showAni(panel:Laya.Box) { if (!panel.contains(this)) { panel.addChild(this); this.pos(0,110); } let i = 1; this.ani1.play(0, false);//出错了 ...
来源: Laya_社区 发布时间: 20170614
...n('end',list,scrollBarHandler) function scrollBarHandler(){ if(this.scrollBar.value == this.scrollBar.max){ var that = this; setTimeout(function(){ that.addItem("../../res/ui/listskins/5.jpg"); ...
来源: Laya_社区 发布时间: 20170912
...aya.Scene3D).physicsSimulation.rayCast(ray,this.outHitResult); if(!this.outHitResult.succeeded){ return false; } return this.outHitResult.collider } 然后使用方法 let obj = this.onGround() let isGround = obj == this.rigidbody; 这...
来源: Laya_社区 发布时间: 20190905
...ene.physicsSimulation.rayCast(_ray,_outHitResult); //如果碰撞到物体 if (_outHitResult.succeeded) { //删除碰撞到的物体 text.text = "碰撞到了" + _outHitResult.collider.owner.name ; trace("碰撞到物体!!") } } ``` (图2)
来源: Laya2.0_文档 发布时间: 20210715
...this,this.onLoop.bind(this)); } private function onLoop():void { if(this.stop){ Laya.timer.clear(this,this.onLoop.bind(this)); // } } 2017-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20171108
...ani.loadAnimation(aniPath) ani.play(); //执行回调,将对象传出去 if(fn){fn(ani)} } //外部调用 playAni('res/xx.ani',(ani)=>{ //获取到播放对象 }) 2018-04-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 foo...
来源: Laya_社区 发布时间: 20180428
...新编译即可 //canvas.oncontextmenu = function(e:*):* { // if (enabled) return false; // } //e.preventDefault(); 有6句,需要全部注释 2017-02-07 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cuixueying 相...
来源: Laya_社区 发布时间: 20170112
...,不过js倒是可以清理一部分,就是调gc,,,代码如下 if( isConchRuntime ) { __JS__("gc()"); } 2017-06-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 18336093936 相关问题 看了其他引擎才发现 LAYA ...
来源: Laya_社区 发布时间: 20170622
... 0; col < qrcode.moduleCount; col++) { var b = qrcode.isDark(row, col); if (b) { var flag = 3; sc.graphics.drawRect(col * flag, row * flag, flag, flag, '#ffffff'); qrcodeHome.addChild(sc); } } }这里我们就生成了一个二维码,可以控制颜色和大小 附件 : --> qrcode.zip 2019-11-0...
来源: Laya_社区 发布时间: 20191104
...nLoop); private function onLoop():void { mc.rotation-=5; if(mc.rotation<=0) { Laya.timer.clear(this,onLoop); mc.rotation=0; } } 所以,mc.rotation=0时是有误差的 2017-12-28 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20171228