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

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

161. 组件Tab双图 [ 78%]

... 报错 btCollisionObject undefined View嵌套Dialog组件 请问如何让textinput组件输入密码的时候显示*号? 微信排行榜组件内存泄漏 【教程】2.0微信开放数据域展示组件的使用,WXOpenDataViewer,子域,排行榜 ui组件list数据源的疑问 自定义官...

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

162. 用laya自带的ui编辑器 编辑了一个ui界面,怎么加载啊? 怎么写代码让这个ui界面, 在程序运行时,显示出来啊? [ 78%]

...:"List","child":[{"type":"Box","child":[{"props":{"skin":"comp/label.png","text":"this is a list","x":26,"y":5,"width":78,"height":20,"fontSize":14,"name":"label"},"type":"Label"},{"props":{"x":0,"y":2,"skin":"comp/clip_num.png","clipX":10,"name":"clip"},"type":"Clip"}],"props":{"name":"render","x":...

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

163. 自己写了个label继承官方的label,出现了问题,求指导~ [ 77%]

...--------------------------------------- var label:Label = new Label(); var textFormat:TextFormat = new TextFormat("Microsoft YaHei", 50, "#FF00FF", true, true, true); label.textFormat = textFormat; label.wordWrap = true; label.lWidth = 100; label.lHeight = 100; label.txt = "Hello"; label.lx = 100; l...

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

164. 自动布局容器 [ 77%]

... = {                 ui.LnoidWv.ItemUI: {ui.LnoidWv.ItemUI.txt.text : txtArr}             }         };         dataSource.push(_data);         this.mainPanel.dataSource = dataSource; 想利用dataSource来实现横竖改变时重新赋值,dataSouurce里面放...

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

165. [LayaAir3]如何在3D场景添加文字呢 [ 77%]

...te = ui3d.sprite; console.log("ui3d_root", ui3d_root); let txtField: Laya.GTextField = ui3d_root.getChildByName("txt"); txtField.text = "New String"; } } 2025-10-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 种花家 相关问题 2....

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

166. Sprite中的width,height和size(width,height)感觉没作用啊 [ 77%]

...变加载图片的大小是无效的,不过你可以通过先clear在drawTexture的方法设置下,代码如下: var sprite = new laya.display.Sprite(); sprite.loadImage("comp/bg.png",0,0,0,0,Handler.create(this,function(texture:laya.resource.Texture){         sprite.graphics.clear();  ...

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

167. 分包项目, 加载js时报错 [ 77%]

...nds Box:  package {     import laya.ui.Box;     import laya.display.Text;     import laya.ui.View;     /*[COMPILER OPTIONS:ForcedCompile]*/     public class loading100 extends Box     {         public function loading100()         {             var txt:Text = ...

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

168. HTMLDivElement文字居中问题 [ 77%]

...问题 问题1:是不是 HTMLDivElement 下<span> 标签不支持text-align; 问题2:有什么标签支持text-align; 问题3:如果是都不支持text-align那我该如何去居中文字呢?(除了在HTMLDivElement设置style.align); 2018-08-06 添加评论 免费帖 --> 分...

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

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

...s.init(); } private init():void { this.mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(this.mFontName, this.mBitmapFont); var txt:Laya.Text = new Laya.Text(); txt.text = "武器坐骑角色"; txt.width = 250; txt.height = 250; txt.wordWrap = true; txt.align = "center"; txt.font = this.mF...

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

170. HtmlDivElement超链接问题 [ 77%]

...上面而且比较模糊 2. <a href='test.html' style='color:#000000;text-decoration:none'>Test </a> text-decoration:none这个属性不能取消显示下划线   1或2的问题能否解决其中一个,不然显示效果非常不好   2018-03-13 添加评论 免费帖 --> 分享 微...

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