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

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

151. 内存释放问题 [ 83%]

...e: Laya.Loader.TEXT } // 协议文件 ]; Laya.loader.load(uiResArray, Laya.Handler.create(this, onCompleted), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {...

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

152. 微信小游戏图片加载不出来 [ 83%]

...s/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handler.create(this, this.onLoaded)); 在微信小游戏里面可以显示,但是实体机子上就无法显示"ui/BG/play-bg.png"这一张...

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

153. 材质-BlinnPhong-法线贴图 [ 83%]

...create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh")); monster1.transform.position = new Laya.Vector3(...

来源: Laya_示例 发布时间: 20251130

154. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 83%]

...();  //棋子动画 this.genSpine("res/spine/ludo_qizidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => {  //模版复用 let y = 400; let unitWidth = Laya.stage.width / 16; for (let i = 0; i < 16; i++) { let person = templet.buildArmature(); Laya.stage.addChild(person...

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

155. Tween回调方法里如何带参数? [ 83%]

...法里如何带参数? Tween.to(sp, {x:_x, y:_y, alpha:1}, 1000, null, Handler.create(This, function(){     sp.destroy(); }), 500); 这样写sp并不能被销毁,请问laya里沒有onCompleteParams方法吗? 2017-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

156. U3D导出两个相同的特效。有一个不显示 [ 82%]

...createSprite3D = 2; Laya.loader.create("res/h5/LayaScene_Effect/Effect.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); Laya.loader.create("res/h5/LayaScene_aixin/aixin.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); onEffectOK() : void{ this._createSprite3D -= 1; if(this....

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

157. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 82%]

...s //3d场景加载 Laya.Scene3D.load("res/TerrainScene/XunLongShi.ls",Laya.Handler.create(this,function(scene) { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCa...

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

158. Laya.loader.load怎么停止回调 [ 82%]

....load怎么停止回调 this._load = Laya.loader.load(this._data.url, Laya.Handler.create(this, this.loadComplete), null, Laya.Loader.ATLAS); 如果我想在加载的过程中 不去触发 loadComplete方法 我该怎么办? this._load.off(Laya.Event.COMPLETE, this, this.loadComplete); 这个是...

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

159. 网络和格式-ProtocolBuffer [ 82%]

...。(function() { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var ProtoBuf = Browser.window.protobuf; Laya.init(550, 400); ProtoBuf.load("../../res/protobuf/awesome.proto", onAssetsLoaded); function onAssetsLoaded(err, root) { if (err) throw err; // Obtain a mess...

来源: Laya_示例 发布时间: 20251130

160. 网络和格式-ProtocolBuffer [ 82%]

...。(function() { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var ProtoBuf = Browser.window.protobuf; Laya.init(550, 400); ProtoBuf.load("res/protobuf/awesome.proto", onAssetsLoaded); function onAssetsLoaded(err, root) { if (err) throw err; // Obtain a message ty...

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