大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0515 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...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
...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
...与内容相关的链接 提交 3 个回复 biaofengzheng 赞同来自: this.m_sp3d = Laya.loader.getRes(this.m_data.url); 此处是加载的IH 模型 报错位置 使用 使用 2017-07-06 0 0 分享 微博 QZONE 微信 biaofengzheng 赞同来自: 已解决 单独一个蒙皮网格导入...
来源: Laya_社区 发布时间: 20170706
...", 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
... 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
... Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var colorPicket:ColorPi...
来源: Laya_社区 发布时间: 20171120
...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
...信息是有个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
...题 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
...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