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

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

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

....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.play(this.index, fa...

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

142. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 78%]

...me("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 let mat = new Laya.UnlitMaterial(); mat.albedoTexture = videoNode.videoTexture; this.owner.xxx.getCh...

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

143. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 78%]

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

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

144. QQ 玩一玩 laya.bkadpter.js (新的版本) 报错 [ 78%]

...玩一玩暂时是用不了吗?播放的时候报错误:TypeError: tSound.play is not a function. (In 'tSound.play(startTime,loops)', 'tSound.play' is undefined)

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

145. laya.media.Sound_API3.0 [ 77%]

...ion Methods dispose event hasListener load off offAll offAllCaller on once play Accessors duration get duration(): number Defined in laya/media/Sound.ts:31 获取总时间。 Returns number Methods dispose dispose(): void Defined in laya/media/Sound.ts:38 释放声音资源。 Returns void event eve...

来源: Laya3.0_api 发布时间: 20231115

146. laya.media.SoundChannel [ 77%]

...自动移除。 EventDispatcher  pause():void 暂停。 SoundChannel  play():void 播放。 SoundChannel  resume():void 继续播放。 SoundChannel  stop():void 停止。 SoundChannelProtected Methods  MethodDefined By  __runComplete(handler:Handler):void private SoundChannelProperty Det...

来源: laya_api 发布时间: 20170929

147. laya.ani.AnimationPlayer [ 76%]

...tationAll Packages | All Classes | Index | Frames No Frames AnimationPlayerProperties | Methods | Events Packagelaya.aniClasspublic class AnimationPlayerInheritanceAnimationPlayer EventDispatcher ObjectImplements laya.resource.IDestroy AnimationPlayer 类用于动画播放器。 Public Prop...

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

148. laya.media.SoundChannel [ 76%]

...移除。 EventDispatcher  pause():void 暂停播放。 SoundChannel  play():void 播放声音。 SoundChannel  resume():void 继续播放。 SoundChannel  stop():void 停止播放。 SoundChannelProtected Methods  MethodDefined By  __runComplete(handler:Handler):void private SoundChannel...

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

149. animate 动画播放 怎么把攻击 开火 合起来播放 [ 76%]

...meBased() { this.roleAni.interval = 100; //循环播放动画 this.roleAni.play(0, false, "atk"); //this.roleAni.play(0,true,"fire"); //this.timeLine.addLabel("turnRight",0).to( this.roleAni.play(0, false, "atk")); } /** * 创建一组动画的url数组(美术资源地址数组) * aniName 动作...

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

150. [分享]微信小游戏声音资源批量加载卡住,临时解决方案 [ 76%]

...aya.wxmini.js的MiniSound类中,增加函数           __proto.resetPlay=function(){ this._sound.stop(); this._sound.volume = 1; this._sound.offPlay(); }          2 在MiniSound类的onDownLoadCallBack函数中,this._sound.onError(MiniSound.bindToThis(this.onError,this));         ...

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