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

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

281. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 48%]

...; 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

282. [LayaAir3]Laya3.3.1中一个宽高0的box运行时宽高改变了 [ 47%]

...轴动画里创建的多个动画,怎么分别调用?如图 请问下loader如何强制加载一个文件,避免浏览器的缓存 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,应该用什么缓动模式 移植了一个游...

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

283. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 47%]

...年了至今无解答 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

284. 3D中如何限制角色的行走区域? [ 47%]

...tChildAt(13) as MeshSprite3D;               var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D;               //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D               var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3...

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

285. 微信小游戏IDE加载位图字体,提示错误 [ 46%]

...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

286. Laya怎么使用雪碧图(spritesheet)? [ 46%]

...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

287. layaair1.78版本 textarea和textinput在电脑平台时一点击整个canvas往上移动。 [ 46%]

... 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

288. Panel初始化BUG [ 45%]

...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

289. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 45%]

... 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

290. 【简单跑酷--JS版】---Lv.6 终篇 [ 44%]

... = 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