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

大约有 72 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)

61. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 55%]

...on)) ```typescript function(e:Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示场景已加载完成 garbageCollection(); b...

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

62. 微信小游戏利用开放域好友关系链做排行榜 [ 55%]

...   */     private static dispatch(message:any):void{         switch(message.cmd){             case 1:                 var testUI: ui.test.TestPageUI = new ui.test.TestPageUI();                 testUI.x = 100;                 t...

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

63. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 54%]

...cript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.ga...

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

64. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 52%]

...对象 */ function updateColor(txt){ var c = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt 缓动对象 ...

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

65. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 50%]

...dateColor(txt:Laya.Text):void{ var c:number = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt 缓动对象...

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

66. 缓动 · LayaAir3.0文档 · LAYABOX [ 50%]

...dateColor(txt:Laya.Text):void{ var c:number = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } 代码运行时,由于update回调是每一帧都在...

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

67. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 50%]

...nction updateColor(txt:Text):void { var c:int = parseInt(Math.random()*3); switch(c) { case 0: { txt.color="#EEE000"; break; } case 1: { txt.color="#FFFFFF"; break; } case 2: { txt.color="#FF0000"; break; } default: { txt.color="#EEE000"; break; } } } /** * 缓动完成后的回调方法 * @param tx...

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

68. Laya2.0编译后所有js都自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 43%]

...ll code paths in function return a value. */     // "noFallthroughCasesInSwitch": true,    /* Report errors for fallthrough cases in switch statement. */     /* Module Resolution Options */     // "moduleResolution": "node",            /* Specify module resolution strategy: 'node' (Nod...

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

69. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 40%]

...6), 0, 0, 32, 96); this.rightBg.width = 32; this.addChild(this.rightBg); } switch(type){ case 1: this.rightBg.visible = false; this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); break; default: //随机计算一个宽度 当然 最小是3倍 以防难度太难 var _w = 32 * (3 + parseInt(1...

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

70. 微信小游戏加载资源问题 [ 39%]

...ter.subMaps[curfileHead]; url = url.replace(curfileHead, newfileHead); } } switch (type) { case Laya.Loader.IMAGE: case "htmlimage": case "nativeimage": MiniLoader._transformImgUrl(url, type, thisLoader); break; case Laya.Loader.SOUND: thisLoader._loadSound(url); break; default: ...

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