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

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

281. laya.d3.core.scene.BaseScene [ 48%]

...event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Fu...

来源: laya_api 发布时间: 20170422

282. drawTexture 画出来的数据会有以前的数据 [ 48%]

... 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.graphics.clear(); iconSpr.graphics.clear(); if(htmlCanvas) htmlCanvas.clear(); htmlCanvas = iconSpr.drawToCanvas(iconSpr.width,iconSpr.height,0,0); if(!t...

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

283. 怎么像canvas那样做到每次循环去清空一次画布,我发现每次画的时候他会把上一次的坐标也画出来,导致变形了,该如何让他每次累加的同时清空上次的路径 [ 48%]

...a.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething(); } move() { sp = new Laya.Sprite(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.drawCurves(10, 58, [x, 0, 19, -100, 39, 0], "#ff00...

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

284. 使用方向键 控制精灵在格子中移动 [ 48%]

...keyup); Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown); Laya.timer.frameLoop(1,this,this.loop);事件响应 onkeyup(e){ for(let i:number = 0;i<this.keyList.length;i++){ if(this.keyList[i]==e.keyCode){ this.keyList.splice(i,1); break; } } } onkeydown(e){ if(this.keyList.indexOf(e.keyCode)&...

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

285. laya.ui.Panel [ 48%]

...event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Fu...

来源: laya_api 发布时间: 20170929

286. laya.ui.View [ 48%]

...event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Fu...

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

287. laya.html.dom.HTMLIframeElement_API3.0 [ 48%]

...tomRender destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visib...

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

288. 为什么会出现报错 ani not found:ufo1_down [ 48%]

...敌人 // createEnemy(10); // 定时器自动循环创建敌人 Laya.timer.frameLoop(1,this,onLoop); } function onLoop() { // 遍历所有飞机,更改飞机状态 for(var i = Laya.stage.numChildren - 1; i > 0; i--) { // 接收舞台子对象 var role = Laya.stage.getChildAt(i); // 判断是否...

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

289. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 48%]

... any; constructor () { super (); this.infos = { rotation : 0 }; Laya.timer.frameLoop(1,this,()=> { this.infos.rotation += 1; if (this.infos.rotation >= 360) this.infos.rotation -= 360; this.IM_TURNTABLE.rotation = this.infos.rotation; this.VIEW_TURNTABLE.rotation = this.infos.rotation; }); } }...

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

290. laya.html.dom.HTMLDivElement_API3.0 [ 48%]

...tomRender destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visib...

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