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

大约有 164 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0035 秒)

31. LayaBox 出错啦,请把此信息截图给研发商 SimpleSingletonList [ 76%]

...rivate static SingletonList_expand(){         Laya.SingletonList.prototype["_remove"] = function(index){             // @xd added, 如果index == -1 不执行             if(index == -1){                 return;             }  ...

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

32. 性能测试-卡通人物2 [ 75%]

...racter.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); animation.interval = 70; animation.play(0); this.addChild(animation); } Character.prototype.createBloodBar = function()...

来源: Laya_示例 发布时间: 20241001

33. 对话框点击空白处无法关闭 [ 75%]

...uper.call(this); } CLASS$(testUI,'ui.testUI',_super); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","props":{"width":266,"height":720},"child":[{"type":"Imag...

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

34. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 74%]

...webAudioSoundChannel play方法修改  _proto = Laya.WebAudioSoundChannel.prototype; /** *播放声音 */ _proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopp...

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

35. 关于LayaAir.d.ts生成的建议 [ 73%]

... DateConstructor; 这样应用可以针对引擎层的一些类通过修改prototype打一些便利性的补丁,同时扩展interface的定义,保证应用层typescript的类型识别。 2017-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

36. HTMLDIVElement设置innerHTML时报错 [ 73%]

... if (this._width)return this._width; return this.contextWidth; },[b]_super.prototype._$set_width[/b]);此次出问题的版本为/** *获取对象的宽 */ __getset(0,__proto,'width',function(){ if (this._width)return this._width; return this.contextWidth; },[b]function(value){ var changed=false; ch...

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

37. 加载的时候动画会卡 [ 73%]

...ble = true;     }     Laya.class(Lload,"Lload",ui.loadUI);     Lload.prototype.dh = function(){         this.ani1.play(0,true);         Tween.to(this.bigfont,{scaleX:1,scaleY:1},500,Ease.backOut,null,0)         Tween.to(this.smallfont,{y:905},500,null,null,500);         //Tween...

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

38. Laya2.3.0设置basePath后,打包微信Laya.Texture2D.load图片失败 [ 73%]

...a2.3.0的laya.wxmini.js中MinAspter的init方法里添加一行Laya.Loader.prototype._loadImage = MiniImage.prototype._loadImage;即可正常 附件 : --> 2019-12-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 ...

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

39. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 72%]

...Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; /** * type int 1->地板默认宽度 other->随机宽度 */ _proto.init = function(type){ this.maxRight = 0; //如果不开启autoSize 父容器的宽度和高度无法获取 this.autoSize = true; //初始化...

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

40. 射线BUG [ 72%]

...ass(MousePickingScene, "MousePickingScene", Laya.Scene); MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype.lateRender.call(state); //从屏幕空间生成射线 this.point.elements[0] = Laya.stage.mouseX; this.point.elements[1] = Laya.stage.mouseY; this....

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