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

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

691. laya.display.Animation [ 34%]

...如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则会自动加载图片,然后显示 Sprite transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放...

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

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

...果主角死亡,停止游戏循环 if(this.hero.hp < 1){ Laya.timer.clear(this,onLoop); } // 每隔30帧创建新的敌机 if(Laya.timer.currFrame%60 === 0){ createEnemy(2); } } function lostHp(role,lostHp){ // 减血 role.hp -= lostHp; if(role.heroType === 2){ // 每吃一个子弹升级道具...

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

693. laya.display.EffectAnimation [ 33%]

...如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则会自动加载图片,然后显示 Sprite transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放...

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

694. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 32%]

...protocol);         }         /** 清除所有*/         public clearAll(): void {             this.protocols.clear();         }         /** 销毁*/         public destroy(): void {             this.socket = null;             this.protocols.clear();      ...

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

695. LayaAir开发笔记(1)五十音图连连看 [ 30%]

...unt = winCount + 1; if (winCount == 8 * 3 / 2) { //游戏结束 Laya.timer.clear(this, gameCounter); var score = 100 - timeCount - errorCount; txt.text = "游戏结束 得分 : " + score; } } else { button[card_A].color = "black"; button[card_B].color = "black"; errorCount += 1; } } else if ((card_A...

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

696. HTTP通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 29%]

...ress == 100) { this.logger.text = `当前下载进度: 100%\n`; Laya.timer.clear(this, this.onHttpRequestProgress); console.log("加载进度完成,清除进度事件帧听"); } } /** * 请求完成时触发的响应回调 * @param e 事件对象 */ private onHttpRequestComplete(e: any = null): vo...

来源: Laya3.0_文档 发布时间: 20251010

697. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 29%]

... is ArrayBuffer) { trace(new Byte(message).readUTFBytes()); } socket.input.clear(); } private function OnCallBack():void { MsgManger.SendMsg("LoginOut"); } private function onConnectError(e:Event=null):void { trace("error"); } } }   写了个测试例子,可以收到服务器的推送的数据 ...

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

698. laya.d3.core.render.command.CommandBuffer_API3.0 [ 29%]

...ne addCustomCMD blitScreenQuad blitScreenQuadByMaterial blitScreenTriangle clearRenderTarget drawMesh drawMeshInstance drawRender getCommandsSize setGlobalColor setGlobalInt setGlobalMatrix setGlobalNumber setGlobalTexture setGlobalVector setGlobalVector2 setGlobalVector3 setRenderTarget setShaderDa...

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

699. 在LayaIDE中下载的运行器启动报错 [ 28%]

...iew == null 03-19 15:01:08.581 3111-3317/? E/OpenGLRenderer: SFEffectCache:clear(), mSize = 0 03-19 15:01:08.586 3970-3970/? E/SimeSkbManager: config keyboard type error... 03-19 15:01:08.871 15489-15489/? E/SMD: smd Interface open failed errno is 2 -1 03-19 15:01:09.871 15489-15489/? E/SMD: smd Int...

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

700. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 25%]

...字符也生成出来。 ![18](img/18.png) 清除的方式为:`Edit` -> `Clear all chars in font`,清除之后,再导出的位图文本就如上图左侧红框中所示效果了。 ##### 第二,导出后,要把png的名字与fnt修改为同一个名字 由于该位图字体制作工具,...

来源: Laya2.0_文档 发布时间: 20210715