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

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

201. WX小游戏声音_audio报错问题 [ 68%]

...de.js:18522:8)   解决方案 :  找到音效停止的地方 , 注释 : this._audio= null; , 防止将audio回收即可.. 附件 : --> 2018-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同...

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

202. 1.5.4_beta,动画播放完毕的监视器很大概率会不起作用了 [ 68%]

...    {         // 第一次创建一个动画         if (null == this.mAnimaCur)         {             this.mAnimaCur = new laya.display.Animation();             this.mAnimaCur.interval = 100;             this.addChild(this.mAnimaCur);         }         var lo...

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

203. 使用多个时间轴动画 demo.ani(0,true,'name')失效 [ 68%]

...调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //播放An...

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

204. ReferenceError: Loading_fly is not defined [ 68%]

...ading_fly = function (_super) { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0.85; UIConfig.closeDialogOnSide = false; this.diango = new Laya...

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

205. 在写屏蔽词库的程序时,字符串中没有屏蔽字库中的词,indexOf会出现返回0的情况 [ 68%]

... 1 个回复 cuixueying 赞同来自: 1、你的写法是: console.log("this.roleName.indexOf(this.shieldArray):" + this.roleName.indexOf(this.shieldArray));其中: this.roleName为"暗诗炎舞" this.shieldArray为“” 运行:"暗诗炎舞".indexOf(""),,当没有写任何东西的时候...

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

206. DOMException报错 [ 68%]

...a5416 • 2017-08-25 09:47 AudioSound类的play方法 177行 channel.url = this.url; 提示这个url报错 yonghua5416 • 2017-08-25 09:49 应该是切换,播放背景音乐时报错的 yonghua5416 • 2017-08-25 10:20 确定是切换背景音乐的导致的报错

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

207. 动画添加了 滤镜,drawcall 次数暴增,这是为啥???? [ 68%]

...暴增,这是为啥????   var url = App.animManager.getUrl(id); this.ani.loadAtlas(url,null,id); this.ani.alpha = 0.5; this.ani.play(0, true); var grayMat = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]; //创建一个颜色滤镜对象,灰图 var scaleFilter = new Laya...

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

208. 关于2.3.0动作克隆问题,AB两个怪物用同一个模型,A的动作会影响B。 [ 68%]

.../attack state.clipStart = clipStart; state.clipEnd = clipEnd; state.clip = this._animator.getDefaultState().clip; this._animator.addState(state);每个状态的clip都是 this._animator.getDefaultState().clip 这个对象。 播放动作时,是根据动作类型设置是否循环。 this._animato...

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

209. 在绘制扇形CD进度条时会在IOS上百分百出现绘制不完全的BUG(有必现Demo) [ 68%]

...在IOS上百分百出现绘制不完全的BUG:如下图     update() { this.updatePowerProgressTest(); } //更新蓄力进度圈 updatePowerProgressTest() { //是否为增加进度条 if (this.isIncPower) { //蓄力速度 this.currentPower += 5; if (this.currentPower >= this.powerTotal) { thi...

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

210. 照着官方文档写的 Dialog 报错? [ 68%]

...r LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype...

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