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

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

201. IDE导出的粒子文件显示不一致 [ 71%]

... 另外,粒子的贴图好像不能使用图集? var part:Particle2D = new Particle2D(null); part.url = AssetsUtil.getUrl("ui/meigui.part"); addChild(part); 附件 : --> cherry.zip 2017-03-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

202. IDE发布之后,在res下并没有任何资源,这是什么情况啊? [ 70%]

...正常运行,为什么打包APK之后在手机上就连接不上socket new Laya.Sprite();绘制图形以后,怎么删除释放资源? 发布H5后通过网页打开出现左上角的那个图标是什么东东 怎么去掉 修改stage的scale后,会发生异常情况 编辑了图片 执行代...

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

203. 手机非谷歌浏览器,出现TypeError: Invalid value used as weak map key异常 [ 70%]

...TypeError: Invalid value used as weak map key异常。   try { this.ui = new ui.app.GameHallUI(); // laya IDE生成的UI代码 }catch(e){ }   2017-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying ...

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

204. 解决跨域相关! [ 70%]

...w.baidu.com,这个加头后,为啥还连不上, 看代码-> this.hr=new HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError); this....

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

205. laya接入vivo平台加载资源卡住66% [ 70%]

.../// //jiaz加载kasi加载卡死wenti if(Browser.onVVMiniGame) {// _http = new HttpRequest(); _http.on(Event.PROGRESS, this, onProgress); _http.on(Event.ERROR, this, onError); _http.on(Event.COMPLETE, this, onLoaded); ////////////////////////////////////////////////////// } else { //...... } 已解...

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

206. laya 2.0 可以支持 typescript namespace 吗 [ 70%]

... 文件3 c.ts import * as game from "./a.ts" import * as game2 from ".b.ts new game.A() new game2.B() // 文件4 d.ts import { A } from "./a.ts" import { B } from "./b.ts" new A() new B() // PS: 对比 c.ts d.ts 可以看出有无 namespace 没啥优势。 // namespace 相对于laya项目来说多...

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

207. laya里面TS的正则表达式跟js不同的 [ 70%]

...S正解: 验证身份证号(15位或18位数字): var reg:RegExp = new RegExp("^[0-9]{15,18}$");             if(reg.test(str)){                 console.log("ok");             }   验证手机号码  var reg:RegExp = new RegExp("^1[0-9]{10}$"); 2017-06-09 添加评论 ...

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

208. 求绘制遮罩会引起黑屏的解决办法 [ 70%]

求绘制遮罩会引起黑屏的解决办法 this.progressvalue = new Laya.Image("Game/bar_yuan.png"); this.progressvalue.anchorX = 0.5; this.progressvalue.anchorY = 0.5; this.progressvalue.pos(15, 15); //记录宽度 this.width_x = this.progress.width + 3;   this.vmask = new Laya.Sprite(); this....

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

209. Property 'BoxMesh' does not exist on type 'typeof Laya' [ 70%]

...-4-0-0​   // 添加自定义模型     var box:Laya.MeshSprite3D = new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1));运行报错Property 'BoxMesh' does not exist on type 'typeof Laya'请问应该怎么解决 2019-03-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

210. sharedCanvas现在在laya里面不能用了吗???急 在线等 [ 70%]

...ta(layout: Laya.Sprite) { clearDrawOpenData(layout); var sp: Laya.Sprite = new Laya.Sprite(); sp.width = layout.width; sp.height = layout.height; var openDataContext = wx.getOpenDataContext(); var sharedCanvas = openDataContext.canvas sharedCanvas.width = layout.width; sharedCanvas.height = layout.h...

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