大约有 1,636 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1477) Laya2.0_文档(45) Laya3.0_api(26) Laya_示例(21) Laya2.0_api(18) laya_api(17) Laya2.0_示例(16) Laya3.0_文档(16)
....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
...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
... 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
...玩一玩暂时是用不了吗?播放的时候报错误:TypeError: tSound.play is not a function. (In 'tSound.play(startTime,loops)', 'tSound.play' is undefined)
来源: Laya_社区 发布时间: 20180328
...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
...自动移除。 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
...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
...移除。 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
...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
...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