大约有 406 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
Laya_社区(251) Laya2.0_文档(53) Laya3.0_api(44) Laya3.0_文档(41) Laya2.0_示例(7) Laya_示例(6) laya_api(2) Laya2.0_api(2)
...Laya.View.regComponent("ScaleButton", ScaleButton); Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame)); } private loadGame(): void { var resArray = [ { url: "res/atlas/lobby/cre...
来源: Laya_社区 发布时间: 20181213
...Laya.View.regComponent("ScaleButton", ScaleButton); Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame)); } private loadGame(): void { var resArray = [ { url: "res/atlas/lobby/cre...
来源: Laya_社区 发布时间: 20181202
...毕,此方法只执行一次 onAwake(): void { //支付宝小游戏 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...
来源: Laya3.0_文档 发布时间: 20251010
...00631用户 赞同来自: //加载IDE指定的场景 Laya.loader.load([{url:"minastc.config.json",type:Laya.Loader.JSON}],new Laya.Handler(this,function(){ this.astcconfig = Laya.loader.getRes("minastc.config.json"); for(var key in this.astcconfig...
来源: Laya_社区 发布时间: 20221013
...Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Load.loader.getRes返回都是Null laya创建wxopendataviewer组件报 Cannot read property "createTexture" of null 的错误,疑似layabug Cannot read property 'offCanplay' of null laya2.9版本,脚本如何正确添加,现...
来源: Laya_社区 发布时间: 20171206
预加载3D资源后,如何使用 例如我用Laya.loader.create(["sphere/sphere.lh"], null, processHandler);方法已经加载了lh文件,然后在创建sprite3D的时候,如何使用呢?还是用Sprite3D.load()? 这样会不会加载两次? 2017-05-20 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20170520
... 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: Laya.loader.load("abc.ttf",Laya.Handler.create(this, this.abc)); demo里没写预加载字体的代码, 先加载字体,然后再在回调方法里 初始化场景 abc():void{ GameConfig.startScene &&...
来源: Laya_社区 发布时间: 20191217
...通用节点,避免重复创建 3、释放资源直接调用Laya.loader.clearTextureRes 4、每次使用之前,先检测Templete对应的Texture资源是否释放过,如果释放过先恢复Texture的资源,避免Laya.Skeleton使用时发现资源不存在自己去恢复,会有...
来源: Laya_社区 发布时间: 20201128
....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
... 分享 微博 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