大约有 868 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
Laya_社区(575) Laya3.0_api(100) Laya2.0_api(69) laya_api(68) Laya2.0_文档(20) Laya3.0_文档(19) Laya2.0_示例(9) Laya_示例(8)
...如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则会自动加载图片,然后显示 Sprite transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放...
来源: Laya2.0_api 发布时间: 20190513
...果主角死亡,停止游戏循环 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
...如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则会自动加载图片,然后显示 Sprite transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放...
来源: Laya2.0_api 发布时间: 20190513
...protocol); } /** 清除所有*/ public clearAll(): void { this.protocols.clear(); } /** 销毁*/ public destroy(): void { this.socket = null; this.protocols.clear(); ...
来源: Laya_社区 发布时间: 20161109
...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
...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
... 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
...ne addCustomCMD blitScreenQuad blitScreenQuadByMaterial blitScreenTriangle clearRenderTarget drawMesh drawMeshInstance drawRender getCommandsSize setGlobalColor setGlobalInt setGlobalMatrix setGlobalNumber setGlobalTexture setGlobalVector setGlobalVector2 setGlobalVector3 setRenderTarget setShaderDa...
来源: Laya3.0_api 发布时间: 20231115
...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
...字符也生成出来。  清除的方式为:`Edit` -> `Clear all chars in font`,清除之后,再导出的位图文本就如上图左侧红框中所示效果了。 ##### 第二,导出后,要把png的名字与fnt修改为同一个名字 由于该位图字体制作工具,...
来源: Laya2.0_文档 发布时间: 20210715