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

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

701. 文本对齐与自动换行(ActionScript-LayaAir基础篇(AS3)-文本) [ 69%]

...n = "center"; //设置文本垂直居中 txt.valign = "middle"; Laya.stage.addChild(txt); } } } ``` ![5](img/5.png) 在实际编码中如果需要其他的对齐模式,请参考API中的align和valign的取值,找到适合项目的水平对齐模式和垂直对齐模式。 如果文本内容超...

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

702. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 69%]

...123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

703. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 69%]

...ng(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 this.sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 this.sp.graphics....

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

704. Panel的滚动条皮肤问题 [ 69%]

...'images/scrollbar.png'; panel.vScrollBar.elasticDistance = 100; Laya.stage.addChild(panel); // 0为说明 1为排行 内容部分 switch(num){ case 0: panel.addChild(_this.descriptionContent()); // 说明 内容 break; case 1: panel.addChild(_this.rankingContent()); // 排行榜 break; } }     附...

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

705. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 69%]

...交 2 个回复 hj 赞同来自: var logo = new Laya.Sprite(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.wi...

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

706. 发射射线检测不到,物体有包围盒 [ 69%]

...ne3d             scene3d.name = 'good';             self.owner.addChild(scene3d);              var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent");              // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(...

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

707. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 69%]

...: 0 } sp = new Particle2D(data); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();canvas 和webgl 自行切換 附件 : --> 2018-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

708. sk文件加载 [ 69%]

...        sk.pos(200,200)                 Laya.stage.addChild(sk);             }))                                        Laya.timer.once(2000,this,function(){                 sk.destroy(true)           ...

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

709. 关于DIalog的蒙版问题 [ 69%]

...关于DIalog的蒙版问题 var ccc:CCCView=new CCCView(); ccc.popup(); sp.addChild(ccc); Laya.stage.addChild(ccc);     按照这个方法解决了 弹出的层级问题,  但是第二次使用Dialog弹出的时候蒙版还是不可见 2017-01-11 添加评论 免费帖 --> 分享 微博 QZONE ...

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

710. 加载UI为什么总是加载白底 [ 69%]

...der.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super(this); } Laya.class(start,"start",_super); //var _proto = Game.prototype; return start; })(ui.startUI) 2018-12-20 添加评论 免费帖 -...

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