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

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

1. 引擎中有没有像flash的URLVariables类的tostring方法,可以复杂参数串进行RULEncode,没有的怎么实现啊? [ 100%]

引擎中有没有像flash的URLVariables类的tostring方法,可以复杂参数串进行RULEncode,没有的怎么实现啊? 2017-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自...

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

2. getGraphicBounds() 的问题 [ 90%]

...同来自: var rect:Rectangle = rcurDs.getGraphicBounds(true); trace(rect.toString());     rect.x -= rcurDs.pivotX;     rect.y -= rcurDs.pivotY; trace(rect.toString()); rect = rcurDs.getGraphicBounds(true); trace(rect.toString());   你打个显示对象,试一试啊   2017-11-09 0 1 分...

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

3. args.slice is not a function [ 85%]

...报错提示:Uncaught TypeError: undefined is not a function) trace(arr2.toString()); }兼容H5写法:public function funArgs(...args:Array):void{ var arr2:Array = args.slice(); trace(arr2.toString()); } 特殊情况:如果args不是唯一的参数,工具会自动识别。  原生例子: public...

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

4. args.slice is not a function [ 85%]

...报错提示:Uncaught TypeError: args.slice is not a function) trace(arr2.toString()); }[/i]  兼容H5写法:[i]public function funArgs(...args:Array):void { var arr2:Array = args.slice(); trace(arr2.toString()); } [/i] 特殊情况:    如果args不是唯一的参数,工具会自动识别。 ...

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

5. xml中直接通过=号修改节点无效 [ 81%]

...t;a>a</a></data>; xml.a=<a1>b</a1>; trace(xml.a.toString());//输出:b trace(xml.toString());//输出:<data><a>a</a></data> 2015-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

6. LayaAir 寻路库,寻路路径错误 [ 81%]

...able, grid.nodes[1][2].walkable, grid.nodes[2][2].walkable);   trace(path.toString()); -------------------------------------输出----------------------------- true true true          0 0 0 false false true  -->   1 1 0 false false true        1 1 0 路径:0,0,  0,1, 1,2, 2,2 然...

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

7. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 79%]

...gh.obj(function (file, enc, cb) { staticVersion = JSON.parse(file.contents.toString()) let content = `export default ${file.contents.toString()}` file.contents = new Buffer(content) this.push(file) return cb() }); }()) .pipe(gulp.dest('.')) }) /** 图集资源添加时间戳 */ gulp.task('updata_atl...

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

8. 精灵添加名称 [ 78%]

... i < 4; i++ ){         sp=new Sprite();          sp.name = i.toString();         console.log(sp.name);         sp = project.drawsomething(20, 20+60*i, "#eeb9b3");         sp.on(Event.CLICK,this, onsp);         Laya.stage.addChild(sp);   }   private function o...

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

9. 小米手机三指点击后,后续获得的触摸点失效 [ 78%]

... i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag mouse down", str); }); Laya.stage.on(Laya.Event.MOUSE_UP, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${...

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

10. 资源回收的清理不干净的bug [ 77%]

...cene.addChild(sp.clone());                 ball.name = i.toString();             }             console.log("add finished: ", myscene.numChildren);                  for(var i=0; i<myscene.numChildren; i++){              ...

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