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

大约有 285 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)

151. Clip组件Bug:Play方法无法结束循环 [ 63%]

...rows: number, interval?: number, isLoop?: boolean) {         super(path, cols, rows);         if (interval != void 0) {             this.interval = interval;         }          this.on(Laya.Event.COMPLETE, this, () => {       ...

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

152. 导出到轻游戏平台不成功 [ 63%]

...[TypeError: undefined is not an object(evaluating 'BKCanvasRenderContext.__super.call')];line = 61647,column= 42, 2018-12-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 183*****470 赞同来自: 是不是要将...

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

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

...rivate skin_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

154. 对象池 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...的方式进行管理对象池: export class EffectA { constructor() { super(); } static create(): EffectA { Pool.getItemByClass(EffectA); } recover(): void { Pool.recoverByClass(this); } } export class EffectB { constructor() { super(); } static create(): EffectB { Pool.getItemByClass(EffectB); }...

来源: Laya3.0_文档 发布时间: 20251010

155. fillTexture使用问题 [ 63%]

... static width: number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png"); this.width = 1000; this.height = 500; this....

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

156. 2d帧动画bug:编译运行会掉帧,编辑器不会掉帧,2.2.0版本以上都有这个问题 [ 63%]

...码如下: class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun == null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } }      2019-11-19 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

157. TestArea为什么没有读取txt里的文本内容? [ 63%]

...同来自: 实验了下,将TextPageUI.surper(this);修改成TextPageUI.__super.call(this);就可以了。 2018-12-25 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 鱿鱼小丝 相关问题 文本如何自动换行 关于文本遮挡 ...

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

158. spine动画放大后,遮罩显示不正常 [ 62%]

...ene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene("test/TestScene...

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

159. 分享一个自己做的游戏公告功能,跑马灯效果 [ 62%]

...                      </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) ...

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

160. [LayaAir3]Pool对象池获取继承对象时会返回基类对象 [ 62%]

... { type = 0; } export class TestClass2 extends TestClass { constructor() { super(); this.type = 1; } }测试代码如上所示,打印结果是:0,0,true,预期结果是:0,1,false才对。 获取TestClass2实例时,返回的是TestClass的实例对象,看了下源码,发现是获...

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