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

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

151. layacmd 安装不成功 [ 72%]

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

152. Tween回调方法里如何带参数? [ 72%]

...参数? Tween.to(sp, {x:_x, y:_y, alpha:1}, 1000, null, Handler.create(This, function(){     sp.destroy(); }), 500); 这样写sp并不能被销毁,请问laya里沒有onCompleteParams方法吗? 2017-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

153. socket通讯返回数据 [ 72%]

...a.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this...

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

154. 怎样获取父类? [ 71%]

...添加一个页面TipsView为子类 ... ... var tipView = new TipsView(); this.addChild(tipView);   function enterNextScene() { } ... ...      //这个是TipsView.js类,我想在这个类里调用上面那个父类里enterNextScene的方法,如何获取到上面那个父类呢? var TipsVie...

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

155. Laya.timer.loop(delay, caller, method) [ 71%]

...ne.LightmapData.get_lightmapColor'. var mid=method.$_TID || (method.$_TID=(this._mid++)*100000); reflection error: can not find method signature 反射错误 Laya.timer.loop 的 Laya.timer.clear 问题 Timer.clear清理同caller同method的多个loop Laya.timer.loop() 报错 Cannot read property 'lo...

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

156. Keyboard Event如何获取按下某个键 [ 71%]

...nt如何获取按下某个键 定义了一个Input,绑定了键盘事件:this._ipt.on(Laya.Event.KEY_DOWN, this, this.OnInput); private OnInput(evt : EVENT) : void { // 这里怎么获取具体哪个键被按下?。。。 } 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

157. 微信小游戏渲染开放域卡顿处理 [ 69%]

...i         constructor() {             super();             this.once(Laya.Event.DISPLAY, this, this.onCreate);             this.once(Laya.Event.UNDISPLAY, this, this.onDestroy);         }         /**          * 加入场景          */         protected on...

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

158. unity导出有动作的模型,加载时报错 [ 69%]

...l/Model_1001.lh", Laya.Handler.create(null, (sprite:Laya.Sprite3D) => { this.mScene.addChild(sprite); sprite.transform.translate(new Laya.Vector3(-0.3, 0, 0)); }));   报错信息laya.d3.js:6573 Uncaught TypeError: Cannot set property 'x' of undefined     at AnimationTransform3D.get localRotat...

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

159. 如何获取动画的长度? [ 69%]

...回调还是获取不到   tl.loadAnimation("s.ani", Laya.Handler.create(this, () => { var bounds = tl.getGraphicBounds(); console.log(bounds.width) }, [tl]));   还是0 2018-01-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hill...

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

160. 引擎 TiledMap 居然不支持图块翻转 [ 68%]

... constructor() {             super(...arguments);             this.relativeX = 0;             this.relativeY = 0;             this.isAloneObject = false;             this.isHaveAnimation = false;             this.drawImageNum = 0;             this._map = nul...

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