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

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

3571. 嵌入字体 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...t = "自定义嵌入字体"; label.fontSize = 30; label.color = '#FFFFFF'; this.Main.box2D.addChild(label); label.pos(30, 50) }); Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2026-01-28 15:12:31 img{cursor:pointer}

来源: Laya3.0_文档 发布时间: 20260128

3572. 聊天室使用HTMLDivElement,宽度被固定为180了,这个怎末改,求救 [ 50%]

...TMLDivElement = Laya.HTMLDivElement; var textfiled = new HTMLDivElement(); this.addChild(textfiled); textfiled.pos(10, 10); textfiled.width = 890; textfiled.style.color = "#10922a"; textfiled.style.font = "黑体"; textfiled.style.fontSize = 30; textfiled.style.valign = "middle"; var clientName = "&...

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

3573. 使用了destroy()之后,还需要手动移除侦听事件和引用吗? [ 50%]

...动将img属性置null吗? 比如:public destroy(){ super.destroy(); this.img = null; } 这个有必要吗? 最后,有没有关于优化的比较系统的文档,https://ldc.layabox.com/doc/?nav=zh-js-3-2-1和https://ldc.layabox.com/doc/?nav=zh-js-3-2-1这两个文档空白一片,看不...

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

3574. 使用了 Cloud反馈建议和创建房间版本问题。 [ 50%]

...来实现逻辑 其他问题: 1、玩家关闭浏览器,但服务器 this.usernum 数不变。 2、当玩家关闭浏览器时,不会通知服务器,导致无法刷新其他客户端消息。   ---------------------------------------------------- 以上是建议 ----------------------------...

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

3575. 保存数据的数组在回调的时候变为undifine [ 50%]

...nfo = heros[i]; if (_heroItemList[i] == null) { item = new HeroResolveItem(this.onSelectedHeroChange); _heroItemList[i] = item; } _heroItemList[i].init(heroInfo); panelHeroInfo.addChild(_heroItemList[i]); _heroItemList[i].x = i%3*190; _heroItemList[i].y = parseInt((i/3).toString()) * 155; } console....

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

3576. ani时间轴动画问题 [ 50%]

...动画问题 Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded)); function onLoaded() {     //创建一个Animation实例     var tl = new Laya.Animation();     //加载动画文件     tl.loadAnimation("TimeLine.ani");     //添加到舞台     Laya.stage....

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

3577. 图片居中的问题 [ 50%]

...ite(); bg.loadImage("res/bg-480x720.jpg"); Laya.stage.on(Laya.Event.RESIZE,this,onResize);   function onResize() {     var scale,scaleX,scaleY;     scaleX = Browser.clientWidth/480;     scaleY = Browser.clientHeight/720;     scale = scaleX > scaleY ? scaleX : scaleY;     bg.scale(scale...

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

3578. Dialog.show 的 showEffect参数在微信真机上的问题 [ 50%]

...如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI。 后来...

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

3579. Sprite graphics的显示比例问题 [ 50%]

...ya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, null, "#ff0000", ...

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

3580. 安卓app加载场景错误 [ 50%]

...756: TypeError: Cannot read property 'createTexture' of null var glTexture=this._source=gl.createTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture (http://192.167.0.100/h5/layawe ... 756:32) at Texture2D.__proto.recreateResource (http://192...

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