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

大约有 2,930 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0068 秒)

871. 最新的ResourceVersion发布以后加载的url不正确 [ 66%]

... "version.json?" + Math.random(),     Handler.create(this, this.onVersonLoaded));   然而发布的游戏启动后发现加载失败,查看日志发现加载的URL拼得不对:   它加载使用的路径是一个奇怪的: http://localhost/h5/res/atlas/ui/sharedcpf27ce0f7.atlas/res/atlas/u...

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

872. 小游戏环境下 声音的缓存机制导致更换声音文件失败 [ 66%]

...导致更换声音文件失败 在wxmini中关于声音的管理 __proto.load = function (url) {             url = URL.formatURL(url);             this.url = url;             this.readyUrl = url;             if (MiniSound._audioCache[this.readyUrl]) { ...

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

873. 微信小游戏加载 BitmapFont 问题 [ 66%]

..."./js/dom_parser"); require("code.js");在加载这个文件的时候 Laya.loader.load([{ url: "button_font.fnt" }], Handler.create(null, onLoaded)); 图片里的 type="font",最终执行的 tempData=data.data; tempData 直接就是button_font.fnt里面内容的字符串类型MiniLoader.onReadNati...

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

874. 打包后启动游戏后报错 [ 66%]

...src = url; script.type = "get"; Browser.window[callbackName] = callback; //loading Main.tl.startLoad(); } private function callback(data:*):void { //移除 var script:* = Browser.getElementById("serverlist"); Browser.document.head.removeChild(script); DataCollection.jsonp.parseData(data); //loading ...

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

875. 鼠标交互-Hold [ 65%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, tex...

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

876. 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 [ 65%]

....com/doc/?nav=ch-as-6-1-4 参考这个,在js的开头位置加上 window.loadingView.loading(100); 就可以避免黑屏 2017-07-26 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 trlanfeng 相关问题 请问LayaAir中如何使图片...

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

877. BlinnPhong材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 65%]

...material = new Laya.BlinnPhongMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线...

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

878. 微信小游戏里面开放数据域的资源加载问题 [ 65%]

...nction.MiniFileMgr.readFile (http://127.0.0.1:63435/game/op ... 418:14) at Loader.__proto.load (http://127.0.0.1:63435/game/op ... 115:18) at LoaderManager.__proto._doLoad (http://127.0.0.1:63435/game/op ... 296:10) at LoaderManager.__proto._next (http://127.0.0.1:63435/game/op ... 269:26) at Loader...

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

879. LayaNative 2.8.0 加载的TTF字体不生效,附复现工程。 [ 65%]

...网盘手机App,操作更方便哦 望解答。           Laya.loader.load("fonts/OPPOSANS-H.ttf", Laya.Handler.create(this, (success) => {             console.log("2.8.0 字体加载是否成功:", success);             Laya.Text.defaultFont = "OPPOSANS...

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

880. 鼠标交互-Hold [ 65%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(apePath, Handler.create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this...

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