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

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

11. 文本-位图字体 [ 80%]

...fontName); } function createText(font) { var txt = new Text(); txt.width = 250; txt.wordWrap = true; txt.text = "Do one thing at a time, and do well."; txt.font = font; txt.leading = 5; txt.pos(Laya.stage.width - txt.width >> 1, Laya.stage.height - txt.height >> 1); Laya.stage.addChild(txt); } })();...

来源: Laya_示例 发布时间: 20251130

12. 缓动-简单的Tween [ 80%]

...r("res/cartoonCharacters/2.png"); characterB.pivot(34, 50); characterB.y = 250; Laya.stage.graphics.drawLine(terminalX, 0, terminalX, Laya.stage.height, "#FFFFFF"); // characterA使用Tween.to缓动 Tween.to(characterA, { x : terminalX }, 1000); // characterB使用Tween.from缓动 characterB.x = ter...

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

13. 文本-位图字体 [ 80%]

...t(font) { let txt = new Laya.Text(); Laya.stage.addChild(txt); txt.width = 250; txt.wordWrap = true; txt.text = "Do one thing at a time, and do well."; txt.font = font; // 文本的字体名称,以字符串形式表示 txt.leading = 5; // 垂直行间距 txt.pos(Laya.stage.width - txt.width >> 1, ...

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

14. 问一个typescript的问题 [ 80%]

...折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xiaobear250 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 unity导出粒子文件问题 laya针对页游耗用内存大的问题是如何解决的? LayaAir3D UnityP...

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

15. APP的声音播放问题 [ 77%]

...关结果 已邀请: 与内容相关的链接 提交 3 个回复 xiaobear250 赞同来自: 试了下,用IDE里面的打包APP工具会出现如上问题,但是如果导出项目再用android studio生成就不会了。 2017-02-02 0 1 分享 微博 QZONE 微信 Laya_XS 赞同来自: 你打包app...

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

16. mouseThrough的功能问题 [ 77%]

...a.hit.drawRect(0, 0, 500, 500, "#ff0000"); area.unHit.drawCircle(250, 250, 50, "#ff0000"); box.hitArea = area; 你绘制一个多边形区域为hit即可 13339103263 • 2016-12-02 13:59 @cuixueying:好的,谢谢

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

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

...:Laya.Text = new Laya.Text(); txt.text = "武器坐骑角色"; 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(); 资源能加载到,但运行后什么都没有...

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

18. 不带格式后缀的图片无法成功加载 [ 75%]

...new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显示,打印 texture 的宽是 undefined,如果是带后缀的图片,比如.jpg就可以正常展示图片。 附件 : --> Im...

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

19. 绘制形状时事件不触发 [ 74%]

...a.hit.drawRect(0, 0, 500, 500, "#ff0000"); area.unHit.drawCircle(250, 250, 50, "#ff0000"); box.hitArea = area; box.mouseEnabled = true; box.on("click", this, onBoxClick); autoSize可以自动计算宽高,但是由于该方法的计算量比较大,会导致性能问...

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

20. DOM元素-表单输入 [ 74%]

...a.stage.bgColor = "#FFFFFF"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; var rowHeightDelta = this.rowSpacing + ...

来源: Laya_示例 发布时间: 20251130