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

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

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

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

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

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

93. 2D物理-碰撞过滤器 [ 34%]

...ddGroup(rigidbody, ratio); } private function addGroup(rigidbody, ratio) { switch(ratio) { case 1: rigidbody.group = Physics_Physics_CollisionFiltering.k_smallGroup; break; case 2: rigidbody.group = Physics_Physics_CollisionFiltering.k_middleGroup; break; case 3: rigidbody.group = Physics_Physics_Co...

来源: Laya2.0_示例 发布时间: 20240930

94. 艰难的历程 [ 33%]

....   慢慢的,开始尝试自己写代码 从最开始的if else   到switch  从table  到div 从只能在一个页面上写写改改,到使用框架尝试制作一个网站   期间遇到过无数问题,其中苦难只有自己知道 从变量到数组、循环、还有花了很长时间才...

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

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

...0); Laya.stage.addChild(txt); txt.on(Laya.Event.CLICK, this, function(e) { switch (e.type) { case Laya.Event.CLICK: gameStart(); break; } }); //注册鼠标点击 加入一个显示得分的函数,分数由时间和出错次数决定,这个函数将会在游戏gameStart函数中调用,因为...

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

96. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 30%]

...s =this;            var type:String = message.type;            switch(type)           {                  default:                    break;           }            // this.getFriendData();            this.setlist(this.arr);       }  然后 记...

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

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

...对象 */ 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

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

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

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

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

100. 缓动 · LayaAir3.0文档 · LAYABOX [ 29%]

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