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

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

471. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 66%]

...pt (function() { var Stage = Laya.Stage; var ComboBox = Laya.ComboBox; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var skin = "res/ui/combobox.png"; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH =...

来源: Laya2.0_文档 发布时间: 20210714

472. 怎么清理掉 Sprite3D 相关的缓存资源 [ 66%]

...缓存资源 通过 lh格式 生成的 Sprite3D, Laya.loader.create(_path, Handler.create(this,OnComplete),null,Sprite3D); 要怎么清理掉他的所有缓存资源? 附件 : --> 2018-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

473. 如何判断加载资源是否成功? [ 66%]

...加载资源是否成功? Laya.loader.load(["res/book00"+2+".txt"], Laya.Handler.create(this, onLoaded(i))) 2018-04-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: Laya.loader.load配合 ...

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

474. 关于位图字体 [ 66%]

...位图字体 是这样注册,吗 Laya.loader.load("res/font.fnt", Laya.Handler.create(this, this.onLoaded),null,Laya.Loader.FONT);   应该没什么问题了,就是这样的           附件 : --> 2017-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

475. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 66%]

...ck/Conventional/puzzleB.lh" ]; Laya.loader.create(this.resource, Laya.Handler.create(this, this.onLoadFinish)); } private onLoadFinish() { //初始化场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vector3(0.5, 0.5, 0.5); //初始化...

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

476. 微信小游戏报错 the .lh file root type must be Scene [ 66%]

...at ResInfo.onLoaded (http://127.0.0.1:62629/game/code.js:12995:61) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Lo...

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

477. Laya3D场景加载问题 [ 66%]

...    onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         let test = Laya.Loader.getRes("gate/Conventional/Test.ls")         let scene = Laya.stage.addChild...

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

478. load 粒子的时候永远出错 [ 65%]

... res/rotate.part   我的代码:   Laya.loader.load("res/rotate.part", Handler.create(this, this.onAssetsLoaded),null,Laya.Loader.JSON);   我再bin/res/rotate.part是存在的 2018-02-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

479. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 65%]

...ader.create("res/scene_Effect/Conventional/Effect_zhujue_attack.lh", Laya.Handler.create(this, () => {              let item = Laya.loader.getRes("res/scene_Effect/Conventional/Effect_zhujue_attack.lh");             let tarItem = Laya.Sprite3D.instantiate(item);...

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

480. UI-Tree [ 65%]

... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.st...

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