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

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

971. 有偿解答 Laya致命问题 -预加载,进度问题 [ 66%]

... Laya致命问题 -预加载,进度问题 使用情况描述: 使用Laya.loader.load加载2d和声音资源使用 Laya.loader.create加载3D场景和模型资源 问题描述: 预加载效果不明显(每次进入时,加载进度都非常慢,需要花半分钟加载,20mb的资源)加载模型...

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

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

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

974. 关于资源加载的问题 [ 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

975. UI-FontClip [ 66%]

...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_示例 发布时间: 20260303

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

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

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

977. 更新到1.7.6beta之后,HBox有bug [ 66%]

... 分享 微博 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

978. 请问在设计模式下制作的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

979. 窗口组件 · LayaAir3.4 · 引擎文档 · 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

980. 个人笔记:失焦或静音状态下播放背景音乐无效的解决方案 [ 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