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

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

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

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

13. 关于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

14. laya.utils.Timer [ 78%]

...void 立即提前执行定时器,执行之后从队列中删除 Timer  toString():String 返回统计信息。TimerProperty DetailcurrFramepropertypublic var currFrame:int = 0 当前的帧数。currTimerproperty public var currTimer:Number 当前帧开始的时间。deltaproperty delta:int  ...

来源: laya_api 发布时间: 20170929

15. laya.maths.Rectangle_API3.0 [ 78%]

...ntains copyFrom equals intersection intersects isEmpty recover reset setTo toString union create Constructors constructor new Rectangle(x?: number, y?: number, width?: number, height?: number): Rectangle Defined in laya/maths/Rectangle.ts:27 创建一个 Rectangle 对象。 Parameters Default value ...

来源: Laya3.0_api 发布时间: 20231115

16. 精灵添加名称 [ 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

17. laya.utils.Timer [ 78%]

...void 立即提前执行定时器,执行之后从队列中删除 Timer  toString():String 返回统计信息。TimerProperty DetailcurrFramepropertypublic var currFrame:int = 0 当前的帧数。currTimerproperty public var currTimer:Number 当前帧开始的时间。deltaproperty delta:int  ...

来源: Laya2.0_api 发布时间: 20190513

18. 小米手机三指点击后,后续获得的触摸点失效 [ 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

19. 资源回收的清理不干净的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

20. 关于mouseThough=true的问题 [ 77%]

...,400,WebGL); Laya.stage.bgColor = "#ff0000"; // trace(Laya.timer.toString()); // Laya.timer.callLater(this,onLater); // trace(Laya.timer.toString()); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded...

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