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

大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0082 秒)

511. 微信飞机大战报错 [ 93%]

...= (function(_super){     function GameInfo(){         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(GameInfo, "GameInfo", _super);     var _proto = GameInfo.prototype;     _proto.reset = ...

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

512. 多个button如何区分 [ 93%]

...多个button如何区分 通过 for 循环 加入多个button 添加事件 this.emojiBut1.on(Laya.Event.CLICK,this,this.onEmojiBut1Click); 多个button 如何区分 点击的哪一个button  可以设置tag吗 或者通过监听事件透传?   附件 : --> 2017-04-25 添加评论 免费帖 --> ...

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

513. 一个没有动作的骨骼动画 替换插图没有用 [ 93%]

...动作的骨骼动画 替换插图没有用     sp(){         this.skebqb = new Laya.Skeleton(SkeTemp.tempbqb, 1);         this.skebqb.play(4, false);         this.skebqb.on(Laya.Event.STOPPED,this,this.changeSkin);         this.owner.addChild(this.skebqb); ...

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

514. 关于UI与3D场景的问题 [ 93%]

... 提交 3 个回复 Laya_Aaron 赞同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述的很明确,很好,这个...

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

515. Node.ts 节点销毁之后为什么要注释掉 timer 的清理操作。 [ 93%]

...则不销毁子节点。 */ destroy(destroyChild: boolean = true): void { this.destroyed = true; this._destroyAllComponent(); this._parent && this._parent.removeChild(this);  //销毁子节点 if (this._children) { if (destroyChild) this.destroyChildren(); else this.removeChildren(); } this...

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

516. graphics drawPath drawLine 鼠标 画笔 画线 锯齿 [ 93%]

...鼠标 画笔 画线 锯齿 mouseMove(e:Laya.Event){ /**/ var p:Laya.Point=this.startPoint; this.cls.graphics.drawPath(0,0,[ ["moveTo", p.x,p.y], ["lineTo", e.stageX,e.stageY] ],null,{strokeStyle:"#ff0000",lineWidth:15,lineJoin:"round",lineCap:"round"}); //*/ //this.cls.graphics.drawLine(this.startP...

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

517. UI-List [ 93%]

...= Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya....

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

518. layabox加载fairygui发布的二进制文件报错 [ 92%]

...json", type:Laya.Loader.BUFFER}              ], Laya.Handler.create(this, this.onLoaded));   Laya.core.js   调试log __proto._endLoad=function(resInfo,content){ var url=resInfo.url; //输出//////////////////////////////// console.log("url:"+url); content==null?console.log("content null")...

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

519. UI-RadioGroup [ 92%]

...../../res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, initRadioGroups)); })(); function initRadioGroups() { for (var i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...

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

520. 在加载swf动画之后在封装的里面报错了 , 用的官网的例子 [ 92%]

...值。     */     __proto.getInt16=function(){         if (this._pos_+2 > this._length)throw "getInt16 error - Out of bounds";         var us=this._d_.getInt16(this._pos_,this._xd_);         this._pos_+=2;         return us;     } 只在那个 If  那...

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