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

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

2471. LayaAir开发笔记(1)五十音图连连看 [ 67%]

...true; copyright.pos(20, g_stat_heiht - 35); copyright.on(Laya.Event.CLICK, this, function() { window.location.href = "http://www.coderluan.com"; }); Laya.stage.addChild(copyright); 3.设置积分板和开始菜单 右下弄了个“点击开始游戏”的文本,点击只会游戏开始,这个...

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

2472. 使用fairygui加载网络图片资源时,laya.core.js中的drawTexture会报错 [ 67%]

...re.js中, if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }执行到这段时,报了tex.once不是一个function的错,但是Texture继承自EventDispatcher,有once这个方法的啊。 http://thirdqq.qlogo.cn/g?b=sdk&k=JZWZibBicdrSCia...

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

2473. UNITY3D 导出的lh格式文件 加载后显示正常,里面的动画无法加载,一直报错。 [ 67%]

...与内容相关的链接 提交 3 个回复 biaofengzheng 赞同来自:   this.m_sp3d = Laya.loader.getRes(this.m_data.url);   此处是加载的IH 模型   报错位置 使用 使用 2017-07-06 0 0 分享 微博 QZONE 微信 biaofengzheng 赞同来自: 已解决   单独一个蒙皮网格导入...

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

2474. 预加载图集文集在小游戏端导致内存过高 [ 67%]

...", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1)); 使用这种方法动态加载资源导致内存很高,该怎么办? 和官网推荐的material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; Laya.URL...

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

2475. 报错,这不是个构造函数 "StartPage is not a constructor" [ 67%]

... StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atla...

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

2476. ColorPicker组件的皮肤制作标准是? [ 67%]

...            Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。           }           private function onLoadComplete():void           {               trace("资源加载完成!");               var colorPicket:ColorPi...

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

2477. 刚体贴图调用问题 [ 67%]

...ter.Bodies.circle(bodyLocationArr[i].x, bodyLocationArr[i].y, 50,Options); this.boxBody = []; this.boxBody.push(bodyA); var img1 = new Laya.Sprite(); img1.loadImage("../xxxx.png",0,0,100,100); var img2 = new Laya.Image(); img1.addChildAt(img2,0); var img3 = new Laya.Image(); img1.addChildAt(img3,1);...

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

2478. laya打包iOS,运行奔溃,构建时候选择的是2.3.0 [ 67%]

...信息是有个alert弹窗,上面的文字: exception info:[TypeError: this._nativeObj.addGlobalValueDefine is not a function.(In "this._nativeObj.addGlobal ValueDefine(modifyType, type, size, defaultData)", "this._nativeObj.addGlobalValueDefine" is undefined)] at line  4664. 附件 : --> 2020-02...

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

2479. 真机下运行帧率不稳定 [ 67%]

...题  class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的信息。   请问有人碰到过...

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

2480. 发布的时候关于版本控制问题 [ 67%]

...urceVersion.enable("version.json?"+Math.random(), Handler.create(this, beginLoad)); 熊猫大侠 • 2018-09-07 16:44 @155*****359:加载的时候 后面跟一个随机数 每次都会拉取最新的 155*****359 • 2018-09-07 17:00 嗯嗯,明白了。多谢朋友! 。。 • 2018-11-2...

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