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

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

581. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 92%]

调用动画结束on方法,报错this.zombieAnimator.on is not a function 创建官方示例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Lay...

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

582. sprite 添加点击事件没反应,对sprite设置了size也没用 [ 92%]

...邀请: 与内容相关的链接 提交 4 个回复 jiehao 赞同来自: this.btn.graphics.drawTexture(window.music.btn_on) ; this.btn.pivot(75/2 , 75/2) ; this.btn.x = window.client_width - 25 ; this.btn.y = 25 ; this.btn.scaleX = 25 / 75 ; this.btn.scaleY = 25 / 75 ; Laya.stage.addChild(this.btn) ...

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

583. 无法清除指定定时器 [ 92%]

无法清除指定定时器 发起一个定时器: Laya.timer.loop(1000,this,this.fan); 当执行 Laya.timer.clear(this,this.fan);时, 控制台还是在执行 fan 函数里的代码 2018-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

584. [BUG]刚体约束问题,移动后约束混乱! [ 92%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果  * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本...

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

585. Image不能清空图片吗? [ 92%]

Image不能清空图片吗? if(!this.lastMakeMc){ //类型小图片 this.lastMakeMc = new Image(); this.collectUIMC.addChild(this.lastMakeMc); this.lastMakeMc.pos(123,68); this.lastMakeMc.size(32,32); }else{ this.lastMakeMc.skin = "face/type"+type+".png"; } if(type == -999){ this.lastMakeMc.dispo...

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

586. this.bitmap.activeResource is not a function. [ 92%]

this.bitmap.activeResource is not a function. 排行榜主域绘制开放数据域sharedCanvas时候报错。代码如下:var rankTexture = new Laya.Texture(Laya.Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); spri...

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

587. EventDispatcher.hasListener问题 [ 92%]

...Listener问题 var e:EventDispatcher = new EventDispatcher(); e.on("test", this, this.test1); e.on("test", this, this.test2); e.off("test", this, this.test1); e.off("test", this, this.test2); console.log(e.hasListener("test")); ---------------------------------------- 输出:true   2018-04-23 添...

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

588. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 92%]

...) { //初始化舞台 Laya.init(1334,750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //添加到舞...

来源: Laya2.0_文档 发布时间: 20210715

589. UI加载完成后无法获取控件的大小——超详细版问题 [ 92%]

...ay.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { co...

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

590. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 92%]

...in_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); }   //btn 有宽高 2018-08-28 添加评论 免费帖 ...

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