大约有 108 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
...position = new Laya.Vector3(0, 0, 0); } onKeyDown(evt: Laya.Event): void { switch (evt.keyCode) { case Laya.Keyboard.SPACE: //按键盘空格时 this.characterController.jump(this.jumpVector); // 跳跃 break; } } } 4.4 获得垂直速度 getVerticalVel() 垂直速度方法主要用于获取角色...
来源: Laya3.0_文档 发布时间: 20251010
...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
...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
.../ ERROR — 构建时遇到错误 // FATAL — 遇到无可修复的错误 switch (event.code) { case 'START': tS = Date.now(); console.log(`Starting 'rebuild'...`); break; case 'END': console.log(`Finished 'rebuild' after ${((Date.now() - tS) / 1000).toFixed(2)} s`); break; case 'ERROR': case 'FATA...
来源: Laya_社区 发布时间: 20201223
...) + ".wav"; return audioPath; } public boolean onTouch(final String type){ switch(type){ case "d": mPTTStartTime = System.currentTimeMillis(); startRecordAudio(); return true; case "u": mAudioDownloaded = false; long endTime = System.currentTimeMillis(); if (endTime - mPTTStartTime < 1000){ Expor...
来源: Laya_社区 发布时间: 20170722
...eWindowType 0x7d83ab1010 disconnect failed D/AwareBitmapCacher: handleInit switch not opened pid=27883 I/om.layabox.tes: WaitForGcToComplete blocked HeapTrim on ProfileSaver for 13.827ms I/om.layabox.tes: Starting profile saver IsSaveProfileNow end. 2019-07-23 0 0 分享 微博 QZONE 微信 为什...
来源: Laya_社区 发布时间: 20190723
...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
...前有两个快捷功能,如下图所示:  ##### `Switch to LayaAir3D BlinnPhongMateria Shader` 可以将Unity的材质一键转换成为LayaAir引擎BlinnPhong材质。 ##### `Switch to LayaAir3D PBRStandardMaterial Shader` 可以将Unity的材质一键转换成为LayaAir...
来源: Laya2.0_文档 发布时间: 20210714