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

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

221. Pool 使用 Laya.Prefab [ 68%]

...aya.Prefab; let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("ItemBox", this._control.targetBox.create, this._control.targetBox); 运行报错: Cannot read property 'create' of undefined targetBox又在 control里面引用一个Prefab 2019-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

222. 微信小游戏,请先初始化小游戏适配库 [ 68%]

...游戏适配库 Wechat Lib:1.9.94, 2018.3.15 14:07:52 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} code.js:7132 请先初始化小游戏适配库,详细教程https://ldc.layabox.com/doc/?nav=zh-ts-5-0-0 console.error Browser.__init__ @ code.js:7132 (anonymous) @ code.js:70...

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

223. UI编辑发布后运行lose skin [ 68%]

...ge.bgColor = "#000000"; Laya.loader.load("comp/button.png", Handler.create(this, this.onLoaded)); } private onLoaded(): void { this.begin = new Begin(); Laya.stage.addChild(this.begin); } } new GameMain(); 2018-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

224. image._nativeObj报错 [ 68%]

...搜遍引擎代码,就只有Graphics的构造函数里面会有这个 _this_._nativeObj=new (window as Object)._conchGraphics(); 貌似没有new成功,麻烦帮忙看看什么情况会导致new失败呢   LayaAir版本:1.7.14beta LayaNative版本:0.9.13 附件 : --> 2018-01-31 添加评论 ...

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

225. 微信头像显示错误 [ 68%]

... 1 个回复 185*****367 赞同来自: if (!tex.loaded){ tex.once("loaded",this,this._textureLoaded,[tex,args]); } 是显示微信头像,格式好像是jifi  2018-01-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****367 相关...

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

226. DOMException报错 [ 68%]

...a5416 • 2017-08-25 09:47 AudioSound类的play方法 177行 channel.url = this.url; 提示这个url报错 yonghua5416 • 2017-08-25 09:49 应该是切换,播放背景音乐时报错的 yonghua5416 • 2017-08-25 10:20 确定是切换背景音乐的导致的报错

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

227. layacmd 安装不成功 [ 68%]

... have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue...

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

228. 怎么循环数组的时候给他定时第一个执行完在执行下一个 [ 68%]

...0 0 1 分享 微博 QZONE 微信 乐趣 赞同来自: Laya.timer.loop(1000,this,this.CardAnimation);  //定时执行某个函数  this.CardAnimation是你要自己实现的动画 动画执行玩后清理掉这个定时器 Laya.timer.clear(this,this.CardAnimation); //清理定时器 这些API里...

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

229. 新手,如何看懂官方代码? [ 68%]

...代码? 例如:官方脚本CameraMoveScript.js CameraMoveScript.super(this);这句什么意思?super这东西哪来的?我要怎么查到它的用法? this.lastMouseX = NaN;为什么用this,而不是var lastMouseX = NaN; CameraMoveScript.prototype._update = function (state){...}像这句...

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

230. 【laya2.0】请问drawToCanvas方法改了吗? [ 68%]

【laya2.0】请问drawToCanvas方法改了吗? var htmlCanvas=this.p6_work.drawToCanvas(575,1023,0,0); var canvas=htmlCanvas.getCanvas(); var base64=canvas.toDataURL("image/png"); 报错:Uncaught TypeError: Failed to execute 'bindTexture' on 'WebGLRenderingContext': parameter 2 is not of type ...

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