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

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

201. 微信小游戏中不能加载proto文件 [ 52%]

...valid url "res/protobuf/Login.proto"   具体代码: (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________")  var ProtoBuf = Browser.window.protobuf;  // Laya.init(550, 400);  ProtoBuf.load("res/proto...

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

202. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 52%]

...72:13)     at http://127.0.0.1:53462/game/code.js:97630:17     at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13)     at Handler.__proto.runWith (http://127.0.0.1:53462/game/code.js:711:59)   查看了应该是微信自带的浏览器内核不支持Function.app...

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

203. 无法触发浏览器文件上传框 [ 51%]

...n: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let...

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

204. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 51%]

... 提交 3 个回复 18857358473 赞同来自: var tx3:Laya.Texture = Laya.loader.getRes("test2.png");         var sp3:Laya.Sprite = new Laya.Sprite();         sp3.texture = Laya.Texture.create(tx3,0,0,315,315,134,134,582,582);          sp3.pivot(315/2,315/2);//锚点使用实...

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

205. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 51%]

...            Laya.init(1136, 640,WebGL);             Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet));                          }         private var imag:Image;         private function onComplet():void        ...

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

206. dialog的lock属性没出现 [ 50%]

...提前设置 assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Butto...

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

207. 加载lh模型后,添加Laya.SkinAnimations组件就报错 [ 49%]

...缓存动画失败 lh文件内meshSprite添加阴影属性无效 请问下loader如何强制加载一个文件,避免浏览器的缓存 为什么给Sprite容器添加点击事件没反应 模型资源释放问题 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 ...

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

208. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 48%]

...e { this.DoLoadData(url); } } protected DoLoadData(url:string):void { Laya.loader.load(url, Laya.Handler.create(this, this.OnLoadDataCb)); } protected OnDownloadFileInWxOk(args:any, result:any, data:any):void { console.log("OnDownloadFileInWxOk"); console.log("" + result + ", data: " + data); if (re...

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

209. [LayaAirIDE3]xcode切入切出声音不播放 [ 46%]

... string): void {         Laya.SoundManager.stopAll();         Laya.loader.clearRes(currentBgmUrl);          Laya.loader.load([{ url: currentBgmUrl, type: Laya.Loader.SOUND }],             Laya.Handler.create(this, () => {                 console.log("----playMusic111 ...

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

210. rigidBody.applyForce 物体不会移动 [ 44%]

...大效果点击的时候按钮位移动了是否是我做法有问题 Laya.loader.create 不会反馈失败状态跟描述不符合 问题状态 最新活动: 2020-09-17 11:28 浏览: 411 关注: 1 人

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