大约有 304 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)
Laya_社区(210) Laya3.0_api(24) laya_api(15) Laya2.0_api(14) Laya2.0_文档(13) Laya_示例(12) Laya3.0_文档(9) Laya2.0_示例(7)
...Element.controls = false;//不现实控制播放按钮 // videoElement.autoplay = "autoplay";//自动播放 // videoElement.poster = GoldConsts.imgUrl; //设置在视频播放之前所显示的图片的 URL。 // 阻止IOS视频全屏 videoElement.setAttribute("webkit-playsinline", true); videoEleme...
来源: Laya_社区 发布时间: 20180313
...隔30毫秒 this.aniFighter.index = 1;//当前播放索引 this.aniFighter.play();//播放图集动画 this.aniFighter.loop = false; //获取动画边界信息,设置锚点 var rectBounds:Rectangle = this.aniFighter.getGraphicBounds(); var rectBounds1:Rectangle = this.aniFighter.getBounds(); //QUE...
来源: Laya_社区 发布时间: 20181023
... return scene; }); } }2.长音频播放暂停和恢复 触发流程是 先play播放, 然后pause暂停, 后续使用resume无法恢复播放(WebAudioChannel) 看代码是 onPause 时 reset了, 清除了当前的 _sourceNode, resume的时候检查没有就return了 3.3使用有...
来源: Laya_社区 发布时间: 20250609
...。 下面粘贴一个小示例(仅供参考)package { import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; public class SwfBinar...
来源: Laya_社区 发布时间: 20151224
...tionZ += norDir.z * 0.017 * this.nSpeed; //this._RoleSeeForward(dir); this.PlayAni(); } public PlayAni() { this.animator.play("walk",1); } 2019-10-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 189*****132 相关问题 Animator 如...
来源: Laya_社区 发布时间: 20191026
...ill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play(); 这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在IDE的layaair调试器中也很明显。 附件 : --> 2018-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20180425
...or:Laya.Animator = tiger.getComponentByIndex(0) as Laya.Animator; animator.play("idle"); var cat:Laya.Sprite3D = this._scene.getChildByName("cat_Idle") as Laya.Sprite3D; var catAnimator:Laya.Animator = cat.getComponentByIndex(0) as Laya.Animator; catAnimator.play("Idle"...
来源: Laya_社区 发布时间: 20180317
...游戏项目 加载有中文的json文件 报错 真机调试报错:LayaPlayer不支持的标签</SCRIPT> IDE通过.ui自动生成的ui代码报错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 本地调试加载本地图片都报错 自定义场景类导出layaM...
来源: Laya_社区 发布时间: 20190416
... 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animator.play("stun"); Laya.Tween.create(this.value).to("y", -30).duration(1000); } } 上述代码中的Main.instance.animator.play("Stun");表示改变动画状态,目的是在减少血量时播放受到攻击的动画。需要在...
来源: Laya3.0_文档 发布时间: 20251010
...忙看下,谢谢啦,贴上代码。 package { import flash.display.Loader; import flash.display.LoaderInfo; import flash.display.MovieClip; import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import f...
来源: Laya_社区 发布时间: 20170317