大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
.../comp.atlas",type:Laya.Loader.ATLAS}] Laya.loader.load(tArray,Laya.Handler.create(this,onResLoaded())); 里面的button和checkbox提示丢失了。是什么原因?? 附件 : --> 2018-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20180325
...idth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.engine.world; Matter.Engine.run(this.engine); // Engine 启动 var render = LayaRender.create({ engine: this.engine, options: { wireframes: false, background: "#0...
来源: Laya_社区 发布时间: 20180522
...也遇到了这个问题 Texture2D.load("res/env/mountain1_3.png", Handler.create(null, function(tex:Texture2D):void { menu_sprite_jian.graphics.drawTexture(tex,0,0); }));这样然后无法drawtexture报同样的错误 但是这个type要如何加上去...
来源: Laya_社区 发布时间: 20190508
...g2.jpg",type:Laya.Loader.IMAGE} ]; Laya.loader.load(resArr, Laya.Handler.create(null, onLoaded)); function onLoaded(): void { Laya.URL.basePath ="https://xxx.com/"; //实例UI界面 var Main: MenuPageUI = new MenuPageUI(); Laya.stage.addChild(Main); } 在我找原...
来源: Laya_社区 发布时间: 20191122
...Loader.TEXT } // 协议文件 ]; Laya.loader.load(uiResArray, Laya.Handler.create(this, onCompleted), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {string[]...
来源: Laya_社区 发布时间: 20170905
...ap.getLayerByIndex(2); mallLayer = tiledMap.getLayerByName("animation"); //Create Bear Start for(var sCnt = 0; sCnt < 20; sCnt++){ createSprite(sCnt) } //Create Bear End } function createSprite(no){ var flower = new Sprite(); flower.loadImage(texture1); flower.pos((0 + no) * 99.5, 73); flower.mou...
来源: Laya_社区 发布时间: 20170110
...y Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getVideo hasListener isCreateFromURL off offAll offAllCaller on once setSource create destroyUnusedResources Constructors constructor new HtmlVideo(): HtmlVideo Overrides Bitmap.__constru...
来源: Laya3.0_api 发布时间: 20231102
Animation 的createFrames 使用已经加载的图集缓存动画失败 我load图集之后, 使用Animation的createFrames缓存动作, api里写着可以使用已经加载的图集动画,结果却又去下载了,地址当然不正确了,导致无法下载.代码大致如下: Laya.loader.load('pla...
来源: Laya_社区 发布时间: 20160610
...r completeHandler:Handler; public function A() { completeHandler = Handler.create(this,onComplete,[this]); completeHandler.run(); new B().load(completeHandler); trace('A',completeHandler.method == null,completeHandler['_id']) } private function onComplete():void { trace('haha') } } }package { import...
来源: Laya_社区 发布时间: 20170330
....Tween.to(item.value, toProps, item.duration *1000, item.easeType, Handler.create(this,this.__tweenRepeatComplete,[item])); 这代码只是个示例 item.tweener.update=Handler.create(this,this.__tweenUpdate,[item],false);}还有我感觉当Tween.to 的第二个参数为{} 的时候,应该也会...
来源: Laya_社区 发布时间: 20180322