大约有 2,661 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0074 秒)
Laya_社区(2342) Laya2.0_文档(106) Laya3.0_文档(59) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...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
...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
...通用节点,避免重复创建 3、释放资源直接调用Laya.loader.clearTextureRes 4、每次使用之前,先检测Templete对应的Texture资源是否释放过,如果释放过先恢复Texture的资源,避免Laya.Skeleton使用时发现资源不存在自己去恢复,会有...
来源: Laya_社区 发布时间: 20201128
... 分享 微博 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
...图片资源的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
...和使用窗口: 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
...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
...source:Array = ["res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100))...
来源: Laya2.0_文档 发布时间: 20210714
...,或者百度经验这类的,不像是给程序员看的 2、比如说Loader这个类,api文档里面loader.load()传入的就是具体的object对象,而示例代码传入的就是包含多个对象的数组。 layabox • 2016-12-12 21:19 嗯。小游戏这块文档,也会重新梳理。...
来源: Laya_社区 发布时间: 20161212
Oppo加载.ls资源错误 Laya.loader.create("res/scenes/LayaScene_game/game.ls", Laya.Handler.create(this, () => { let gameScene = Laya.loader.getRes("res/scenes/LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { consol...
来源: Laya_社区 发布时间: 20190711