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

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

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

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

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

152. 对象池 · 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

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

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

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

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

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

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

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

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

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

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

158. 新手请问下如何开启Laya3D的physics [ 63%]

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

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

159. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 62%]

...edresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.isZiYu && MiniAdpter.isPosM...

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

160. socket.sent [ 62%]

...i.v1UI{ public socket: Laya.Socket; public byte: Laya.Byte; constructor(){ super(); this.btn1.on(Laya.Event.CLICK,this,this.Btn1On); } Btn1On():void{ // socket.connect(“192.168.0.1.133”,8899); console.log("kjk"); this.socket.send("hello world");//这是发送字符串的形式。 //报错TypeE...

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