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

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

151. UI-List [ 63%]

... var Image = 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 L...

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

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. 对象池 · LayaAir3.0文档 · 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_文档 发布时间: 20230303

154. 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

155. 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

156. 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

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. 新手请问下如何开启Laya3D的physics [ 62%]

...} btColObj.setCollisionFlags(flags); this._nativeColliderObject=btColObj; _super.prototype._onAdded.call(this); }报错的意思是 physics3D是undefine,是需要在哪儿初始化一下物理吗 2019-03-21 0 0 分享 微博 QZONE 微信 happyfire 赞同来自: 自己研究中,好像是物理...

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