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

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

271. SCALE_FIXED_WIDTH适配屏幕的问题 [ 58%]

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

272. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 58%]

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

273. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...毕,此方法只执行一次 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

274. demo中的2d和3d混合 加载ktx的资源 会白色的 其他ui没有问题 [ 58%]

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

275. TypeError: this._childs is null [ 58%]

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

276. 预加载3D资源后,如何使用 [ 58%]

预加载3D资源后,如何使用 例如我用Laya.loader.create(["sphere/sphere.lh"], null, processHandler);方法已经加载了lh文件,然后在创建sprite3D的时候,如何使用呢?还是用Sprite3D.load()? 这样会不会加载两次? 2017-05-20 添加评论 免费帖 --> 分享 ...

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

277. 怎么使用ttf,版本2.0.2 [ 57%]

... 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: Laya.loader.load("abc.ttf",Laya.Handler.create(this, this.abc)); demo里没写预加载字体的代码, 先加载字体,然后再在回调方法里 初始化场景 abc():void{         GameConfig.startScene &&...

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

278. spine 推荐使用方式 [ 57%]

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

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

279. socket.sent [ 57%]

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

280. 更新到1.7.6beta之后,HBox有bug [ 57%]

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