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

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

3691. 微信加载proto文件 [ 49%]

微信加载proto文件 在Laya里用this.protobuf.load 可以正常加载,但是导出成微信小游戏就无法加载了。报错无效的URL,求解 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回...

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

3692. 请问:Ts下如何实现打开照相机和系统图库的方法?IOS和Android [ 49%]

...a.stage.addChild(button);         button.on(laya.events.Event.CLICK,this,function () {             let photo = laya.utils.Browser.getElementById("photo");            photo.click();         });     } } new GameMain(); 为什么 click事件没有响应? 猜想...

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

3693. 休眠触发Event.BLUR的函数里有静音的话,恢复网页后报错 [ 49%]

...复网页后报错 游戏中有这样一个监听Laya.stage.on(Event.BLUR, this, onBlur); onBlur函数里有这样一个语句SoundManager.stopAll(); 进行了主动静音,这样做的目的是休眠后游戏自动结束,结束后的界面是没有背景音的,这样再复原时也不会播放...

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

3694. 请问如何释放atlas和他的png资源 [ 49%]

...= "res/CH/atlas/MORNUI_Z_Gongneng.atlas"; Laya.loader.load(url,new Handler(this,hh)); //trace( Laya.loader.getRes(url) ); } private function hh():void { Laya.stage.addChild(new Image("MORNUI_Z_Gongneng/clip_xue_quan.png")); Laya.timer.once(1000,1,ddd); } private function ddd():void { trace("aaa1",La...

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

3695. 2d物理引擎onTriggerStay不执行的bug [ 49%]

..."!",改为"b && c && a && a.BeginContact(this);" 附件 : --> 2020-09-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 157*****593 赞同来自: 收到,我们确认一下 2020-09...

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

3696. MovieClip 报错 [ 49%]

...ERROR,"file not find"); return; } //保护修改-----end------------------ this.basePath =_atlasPath?Loader.getAtlas(_atlasPath).dir:_url.split(".swf")[0] + "/image/"; _initData(data);添加了这个保护后,代码不会报错,但是你的帧循环使用创建MC不会显示,不显示的原因...

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

3697. 用https://layaair.ldc.layabox.com/demo/?2d&Network&XML 官网例子来测试XmlDom,编译报错 [ 49%]

...子来测试XmlDom,编译报错 如题,错误信息为 warning:XmlDom This variable is not defined. 2017-10-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: mab604790322 ...

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

3698. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 49%]

...{ Laya.init(1000, 900);   Laya.loader.load("res/remember.ttf",new Handler(this,test)); }   private function test():void { var text:Text; text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text);   text = new Text(); text.fo...

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

3699. Image属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var dialog: Image = new Image("res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } } } new laya.UI_Image(); ```

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

3700. TypeError: ele.render is not a function [ 49%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of u...

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