大约有 304 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0059 秒)
...; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.na...
来源: Laya_社区 发布时间: 20170303
...轴动画里创建的多个动画,怎么分别调用?如图 请问下loader如何强制加载一个文件,避免浏览器的缓存 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,应该用什么缓动模式 移植了一个游...
来源: Laya_社区 发布时间: 20250915
...年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报...
来源: Laya_社区 发布时间: 20210111
...tChildAt(13) as MeshSprite3D; var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D; //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3...
来源: Laya_社区 发布时间: 20170505
...nt.__proto.parseFont (http://127.0.0.1:61385/game/code.js:803:17) at Loader.__proto.onLoaded (http://127.0.0.1:61385/game/code.js:12700:11) at HTMLImage.onload (http://127.0.0.1:61385/game/code.js:21213:15) at Image._source._source.onload (http://127.0.0.1:61385/game/code.js:20175:...
来源: Laya_社区 发布时间: 20180306
...f后缀 var o1:Object = { url:u + "/sheet.js?v=" + config.version, type:ResLoader.TXT, size:1}; var o2:Object = { url:u + "/sheet.png?v=" + config.version, type:ResLoader.BMD, size:1}; b.push(o1); b.push(o2); } App.loader.loadAssets(b, new Handler(onLoadAssetsComplete), new Handler(onProgress));好...
来源: Laya_社区 发布时间: 20151217
... src="uploadfile.js"></script> <script src='LayaSample.max.js' loader='laya'></script> </body> </html> test.zip 2017-08-10 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这个是因为你的图片太大了,你把你的背景图矢量缩小点看看,在...
来源: Laya_社区 发布时间: 20170810
...ecovery • 2021-11-15 18:42 改成这样试试看 onEnable(): void { Laya.loader.load("comp/image.png", Laya.Handler.create(this, this.onResReady)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, 300, "#ffcccc&quo...
来源: Laya_社区 发布时间: 20211108
... content && (this._data=content); if (this._cache)Loader.cacheRes(this._url,this._data); this._customParse=false; this.event("progress",1); this.event("complete",(this.data instanceof Array)? [this.data] :this.data); } ...
来源: Laya_社区 发布时间: 20180101
... = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.png"); break; } th...
来源: Laya_社区 发布时间: 20160803