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

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

381. dialog第一次显示是正确的,后面再显示就不居中了 [ 55%]

...左 var dialog = new Laya.Dialog(); var img = new Laya.Image('img/bg/tip_center_bg.png'); img.anchorX = 0.5; img.anchorY = 0.5; dialog.addChild(img); dialog.popup(); 版本是1.7.3 beta 2017-04-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

382. 释放资源报错 [ 55%]

...-0.68723 ], "max":[ 0.6775162, 0.1249337, 0.06879723 ] }, "boundSphere":{ "center":[ 0.1737041, -0.217023, -0.3092164 ], "radius":0.7166975 }, "bones":[ 56, 57, 58, 52, 53, 54 ], "materials":[ { "type":"Laya.BlinnPhongMaterial", "path":"Assets/MainGame/Scripts/lmh/Shader/shoubiMat.lmat" } ], "meshPa...

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

383. 新手学layabox的疑问,关于api文档 [ 55%]

...有关设置舞台是这么写的: Laya.stage.alignH = Laya.Stage.ALIGN_CENTER,想请问下小写的【stage】和首字母大写的【Stage】有什么区别,是怎么区分的? 2、为何在api文档中没有看到stage的addChild方法呢? 2018-03-16 添加评论 免费帖 --> 分享 ...

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

384. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 55%]

...色"; txt.width = 250; txt.height = 250; txt.wordWrap = true; txt.align = "center"; txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } new GameMain(); 资源能加载到,但运行后什么都没有看见。请问谁知道为啥? 附件 : --> assets.rar ...

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

385. laya 编辑模式制作box centerX, centerY设置后没有居中 [ 55%]

laya 编辑模式制作box centerX, centerY设置后没有居中 ide: laya2.0.1beta 运行分辨率: iphone8分辨率(其他也可以) 问题描述: 将Image转成Box后 设置centerX, centerY 在编辑模式里显示居中 , 运行时不居中 其他注意事项: 项目设置 为...

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

386. 修改stage的scale后,会发生异常情况 [ 55%]

..."; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; 2017-11-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Monica - 知识达人 赞同来自: ym...

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

387. 屏幕适配-缩放-Extract Fit [ 55%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_EXACTFIT; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -1...

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

388. 屏幕适配-缩放-Show All [ 55%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -10...

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

389. Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? [ 55%]

...WebGL)、3D有效。 Laya.init(1280, 720); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.bgColor = "none";//背景透明  var gameContainer = new Sprite(); gameContainer.loadImage("gameres/extend/micro/bg.png");  var mask = new Sprite(); mask.alpha = 0....

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

390. 其他引擎的Demo-Example_04 [ 55%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.createText(); this.start(); } start() { const Sprite = Laya.Sprite; for (var i = 0; i w) { stars[i].x = stars[i].x - w; } e...

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