大约有 1,081 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
...MOUSE_DOWN, this, this.onMouseDown); } } onMouseDown(e: Laya.Event) { // console.log(e.currentTarget, e.target); if(e.target == this) { this.startDrag(); } else { this.stopDrag(); } } 判断一下点击对象是否是自己。才处理拖动。 2019-11-21 0 1 分享 微博 QZONE 微信 为什...
来源: Laya_社区 发布时间: 20191121
...nction(_super){ function Test(){ Test.super(this); console.log("执行测试构造函数"); } //注册类 Laya.class(Test,"Test",_super); //获取执行域 var _proto = Test.prototype; //_proto. return Test; })(); 2018-06-05 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180605
...nd(x0 + r * Math.cos(hudu)); let y1 = Math.round(y0 + r * Math.sin(hudu)); console.log("Point :x=", x1, "y=", y1,"hudu=",a); return { x: x1, y: y1, hudu: a }; } 2019-06-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 ...
来源: Laya_社区 发布时间: 20190629
... this.onComplete2)); } onComplete2() { console.log("播放完成2"); } onAwake(){ this.setup(); } } 附件 : --> Desktop.rar 2020-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20200925
...件BulletScript中 onStart() { Laya.timer.once(1500, this, function () { console.log("destroy"); this.owner.destroy(); }); } onUpdate() { this.owner.transform.translate(new Laya.Vector3(0, 0, -0.1)); } 2019-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20190308
...emplet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { console.log("parse error"); } private parseComplete() : void { let skeleton0 : Laya.Skeleton; skeleton0 = this.m_templet.buildArmature(1); skeleton0.pos(200,700); skeleton0.showSkinByIndex(1); Laya.stage.addChild(skeleton0); ...
来源: Laya_社区 发布时间: 20180126
...efineNames); } } console.log("预编译完成"); } 问题描述 问题1:代码里面有10个预编译shader有一个没编译,下图中标识了最后一个没编译出来的 问题2:预编译完成后,后面有的shader又给...
来源: Laya_社区 发布时间: 20210608
...md(this.test1,arr); } test1(x,y,args):void { console.log("args[0]"+args[0]+",args[1]"+args[1]+",args[2]"+args[2]) var sp:Laya.Sprite = args[0]; //sp.graphics.clear(); var ctx=Laya.Render._context.ctx; ctx.fillStyle="#F...
来源: Laya_社区 发布时间: 20170316
...2"}) private testSprite2: Laya.Sprite; onStart() { console.log("Game start"); let render1 = new Laya.Sprite(); let render2 = new Laya.Sprite(); let tex1 = this.testSprite.drawToRenderTexture2D(200,200,0,0); let tex2 = this...
来源: Laya_社区 发布时间: 20251229
...2); Laya.stage.addChild(letter); letter.on("click", this, (function(para){ console.log("z:"+z+";para:"+para+";letterList[para]:"+letterList[para]); return function () { alert("z:"+z+";para:" + para + "I'm letter " + letterList[para]); }; })(z)); } 控制台结果: z:0;para:0;letterList[para]:A z:1...
来源: Laya_社区 发布时间: 20180810