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

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

2641. 问一个问题就是你们的每个UI都继承了一个引擎的代码我要写一个UI的基类那不就无法继承了 [ 65%]

...xtends View,依然还是调用不到基类的函数;会报错:“xxx this variable is not defined”;并且在源码中看到“/*no*/this.xxx()”   最头痛的是自己把extends View改为extends自己写的基类后没问题可以正常调用基类函数,但是一刷新它又自动...

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

2642. Laya2.0 LocaRotationEuler引起LookAt的错误 [ 65%]

...修改,代码如下: set localRotationEulerX(value) { var localEuler = this.localRotationEuler; localEuler.x = value; this.localRotationEuler = localEuler; } 2021-09-09 0 1 分享 微博 QZONE 微信 柠檬_酸 赞同来自: 后续补充: 2021-08-08 0 0 分享 微博 QZONE 微信 Laya_小小...

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

2643. [LayaNative3]游戏致命bug,WEB 性能是 native 性能 35倍 ,请求紧急修复 [ 65%]

...er.load(             loadList,             Laya.Handler.create(this, () => {                 var label=this.owner.getChildByName("time") as Laya.Label;                 label.text=((Date.now() - nt) / 1000 + "秒");             })         );  测试环境H5...

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

2644. Laya.timer.loop 的优先级 [ 64%]

...换成了索引0, oy2419498011 • 2018-02-27 16:17 Laya.timer.loop(1000,this,delete_); function delete_(){ // Laya.timer.clear(this,delete_); delete_desktop(1); } function delete_desktop(cut_out){ if(cut_out==1){ delete_majian() }; }; function delete_majian(){ game.bottom.removeChild(game.bottom....

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

2645. 请问下,多个input ,我怎么给他赋值呢,有没有类似jquery的批量处理,还是只能(input1,input2,input3......)一个个的写? [ 64%]

...17-09-12 14:55 有米有实例,给个~~for (var i = 0; i < 10; i++) { this.input.....这里怎么写呢 } wosuxm • 2017-09-12 15:48 ... 命名的时候input1,input2 这样。 let a = [] ; for... { a[i] = this.ui[input+i]; } 大概这个意思 cuixueying • 2017-09-12 17:55 把input存放到...

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

2646. TileMap有明显的bug [ 64%]

...ateMap("res/isometric_grass_and_water.json", viewRect, Laya.Handler.create(this, this._OnMapCreate), null, new Laya.Point(2 * 64, 2 * 32)); 附件 : --> 2019-01-02 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为...

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

2647. 如何实现3d遮罩效果? [ 64%]

...a1.addComponent(CameraMoveScript); } private function loadUI():void { var _this:D3Base_TargetTexture = this; Laya.loader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { var btn:Button = new Button(); btn.skin = "../../../../res/threeDimen/ui/b...

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

2648. Text.as中parseLines方法里的问题 [ 64%]

...行位置或截断位置 var needWordWrapOrTruncate:Boolean = wordWrap || this.overflow == HIDDEN; if (needWordWrapOrTruncate) { var wordWrapWidth:Number = getWordWrapWidth(); } if (_currBitmapFont) { _charSize.width = _currBitmapFont.getMaxWidth(); _charSize.height = _currBitmapFont.getMaxHeight();...

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

2649. 打包app,http无法设置content-type [ 64%]

...or, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'post' || method ===...

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

2650. exception info:[TypeError:undefined is not an object(evaluating'tInfo[0].attributes')] at line 764 [ 64%]

...Font();         blueFnt.loadFont("common/number_blue.fnt", new Handler(this, () => {             Laya.Text.registerBitmapFont("number_blue", blueFnt);         })); 但具体原因不清楚 能否请官方测试下bmfont在iphone上运行情况     2017-05-23 0 0 分享 微博 QZON...

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