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

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

991. 请问在设计模式下制作的UI页面,到底怎么在代码里使用???官方教程不一样 [ 66%]

...图片资源的atlas文件,何解???例如官方的例子:Laya.loader.load(["./res/atlas/ListPage.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas     附件 : --> 2017-09-04 ...

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

992. 个人笔记:失焦或静音状态下播放背景音乐无效的解决方案 [ 66%]

...uted){ return null; } }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); if (!Browser.onMiniGame){ Loader.cacheRes(url,tSound); } }; var channel; channel=tSound.play(...

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

993. 引擎文档能不能重新规划一下,对于新手很不友好 [ 66%]

...,或者百度经验这类的,不像是给程序员看的 2、比如说Loader这个类,api文档里面loader.load()传入的就是具体的object对象,而示例代码传入的就是包含多个对象的数组。 layabox • 2016-12-12 21:19 嗯。小游戏这块文档,也会重新梳理。...

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

994. 关于资源加载的问题 [ 66%]

...pg"}, {url : "res/atlas/games/game_13/image.atlas"} ]; Laya.loader.load(loadArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图集加载完再new一个界面。但是界面里的图片都不显示 thekingret...

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

995. laya里的所有单例都没有初始值 [ 66%]

...       trace("Laya.stage",Laya.stage,"Laya.timer",Laya.timer,"Laya.loader",Laya.loader)             Laya.stage.scaleMode = GameConfig.scaleMode;                          Laya.stage.screenMode = GameConfig.screenMode;             Laya.stage.align...

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

996. spine 推荐使用方式 [ 66%]

...通用节点,避免重复创建     3、释放资源直接调用Laya.loader.clearTextureRes     4、每次使用之前,先检测Templete对应的Texture资源是否释放过,如果释放过先恢复Texture的资源,避免Laya.Skeleton使用时发现资源不存在自己去恢复,会有...

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

997. socket.sent [ 66%]

....Stage.SCREEN_NONE; var uiResArr =[ {url:"res/atlas/comp.atlas",type: Laya.Loader.ATLAS}, ]; Laya.loader.load (uiResArr , Laya.Handler.create(this,this.onLoded));      //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket =...

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

998. 窗口组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...和使用窗口: let win = new GWindow(); win.contentPane = ((await Laya.loader.load("Examples/windows/Window1.lh")) as Laya.Prefab).create(); window.show(); 也可以扩展GWindow类使用: class MyWindow extends Laya.GWindow { protected onInit() { this.contentPane = ((await Laya.loader.load("E...

来源: Laya3.0_文档 发布时间: 20251010

999. UI-FontClip [ 65%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Laya.Handler.create(this, this.ShowContent)); } ShowContent() { const FontClip = Laya.FontClip; var clipnum= new FontClip(assets[0]); var fontClip = new FontClip(assets[1]); var TestFontClip = new FontClip...

来源: Laya2.0_示例 发布时间: 20251219

1000. 更新到1.7.6beta之后,HBox有bug [ 65%]

... 分享 微博 QZONE 微信 lusky 赞同来自: Laya.init(1200, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var sk...

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