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

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

191. protobuffer加载失败 [ 83%]

...使用中括号 )加载 .proto 文件失败:     Laya.loader.load(["res/protobuf/user.proto"], Handler.create(this, onAssetsLoaded)); 错误提示如下: [warn]Retry to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto [error]Failed to load: E:/LayaBox/ProtobufLoadTest/bin/res/p...

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

192. clearRes好像没作用,或许我的用法不对 [ 83%]

clearRes好像没作用,或许我的用法不对 刚才代码路径有误,更正如下     constructor() {         super();         Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp);     }     onKeyUp(e: Laya.Event) {         if (e.keyCode == 65) {//A         ...

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

193. UI-Dialog [ 83%]

...de = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.add...

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

194. UI-Dialog [ 83%]

...ALOG_HEIGHT = 275, CLOSE_BTN_WIDTH = 43, CLOSE_BTN_PADDING = 5, assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; class UI_Dialog { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换...

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

195. Laya.loader.load 如何同时加载图片数组以及json图集 [ 83%]

...ad 如何同时加载图片数组以及json图集 Laya.loader.load([{url: "res/atlas/images/fesh.json", type: Loader.ATLAS}, {url: "res/atlas/images.json", type: Loader.ATLAS},{url: "res/atlas/common.json", type: Loader.ATLAS}, {url: "res/atlas/template/ButtonTab.json", type: Loader.ATLAS},{url: "im...

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

196. 头条小游戏二进制文件加载失败 [ 83%]

...小游戏二进制文件加载失败 Laya.loader.load([         { url:"res/Bag.xml", type:Laya.Loader.BUFFER},         { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },         { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},                   ], Laya.Handler.create(t...

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

197. h5发布后,访问不到图片? [ 83%]

...路径全错了,下面这个是选择合并JS后的结果 Failed to load resource: net::ERR_FILE_NOT_FOUND EXIT.png Failed to load resource: net::ERR_FILE_NOT_FOUND laya.core.min.js:1 [warn]Retry to load: ../bin/res/btimg/START.png n._endLoad @ laya.core.min.js:1 laya.core.min.js:1 [warn]Retry to ...

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

198. Laya2.0,使用WebGL渲染,获取canvas使用微信方式保存图片,显示黑色? [ 83%]

...y: 10, width: 200, height: 150, destWidth: 400, destHeight: 300, success: (res) => { console.log(res) wx.saveImageToPhotosAlbum({ filePath: res.tempFilePath, success(res) { //保存成功 wx.showToast({ title: '保存成功' }); } }) } }) 这是保存代码,获取canvas使用的事 Laya.Render....

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

199. l微信开放域无法显示,但是可以正常传数据 [ 83%]

...f(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "...

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

200. 射线检测-碰撞器混合 [ 83%]

...de = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls", clas: Laya.Scene, priority: 1 }, { url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loa...

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