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

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

201. 音频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...发者有两种方式,来避免。 一种是在入口文件中,将autoStopMusic设置为false。 …… //失去焦点后是否自动停止背景音乐。false不自动停止,一直播。true是自动停止 Laya.SoundManager.autoStopMusic = false; …… 如果不设置这个,当失去焦点...

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

202. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 46%]

...r.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play) this.play(); } private onError(): void{ console.log("parse error"); } private play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton...

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

203. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 46%]

...his.isDown = false; this.isUp = false; this.isMove = false; this.isMode = "stop"; //移除弹起和移动事件 this.layer.off(Laya.Event.MOUSE_UP, this, this.upFun); this.layer.off(Laya.Event.MOUSE_MOVE, this, this.moveFun); Laya.Tween.to(this.moveKey, { x: this.moveKey.mode.x, y: this.moveKey.mode...

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

204. laya.particle.Particle2D [ 46%]

...lean = false, ratio:Number = 0.92):void 开始拖动此对象。 Sprite  stop():void 停止 Particle2D stopDrag():void停止拖动此对象。Sprite timerLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true, jumpFrame:Boolean = false):void 定时重复执行...

来源: laya_api 发布时间: 20170929

205. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 45%]

...录的时候主动调该方法。例如角色死亡或者关卡结束 */ stop(): void { if (Browser.onTTMiniGame && this._recorder) { //监听录屏结束事件,停止后拿到生成的视频地址 this._recorder.onStop((res) => { console.log("录屏结束 res.videoPath:" + res.videoPath); //设...

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

206. vivo 的激励视频无法播放 app启动的时候报错 [ 45%]

...示 VM11 (no filename):8 ### App Framework ###  [warn] InnerAudioContext stop: currently is no music 2020-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 kylin 赞同来自: 我们的适配库在旧的版本...

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

207. laya.particle.Particle2D [ 45%]

...lean = false, ratio:Number = 0.92):void 开始拖动此对象。 Sprite  stop():void 停止 Particle2D stopDrag():void停止拖动此对象。Sprite timerLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true, jumpFrame:Boolean = false):void 定时重复执行...

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

208. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 45%]

...roller); } function onClipSwitchState() { if (counter.isPlaying) { counter.stop(); currFrame = counter.index; controller.label = "播放"; } else { counter.play(); counter.index = currFrame; controller.label = "暂停"; } } })(); ```

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

209. 分享-js资源进度加载 [ 44%]

...SFX_spin.mp3", type: Laya.Loader.SOUND } , { url: "video/mp3/SB02_SFX_spin_stop.mp3", type: Laya.Loader.SOUND } , { url: "video/mp3/sfx_big_win.mp3", type: Laya.Loader.SOUND } , { url: "video/mp3/sfx_button.mp3", type: Laya.Loader.SOUND } , { url: "video/mp3/sfx_coin_fly.mp3", type: Laya.Loader.SOUN...

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

210. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 44%]

...ght / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play) this.play(); } private onError(): void{ console.log("parse error"); } private play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton...

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