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

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

561. Font.defaultFont设置默认字体无效 [ 72%]

...ont = "SimHei" Laya.init(600, 1200, WebGL); var txtName = new laya.display.Text(); txtName.fontSize = 20; txtName.color = "#ffffff"; txtName.align = "center"; txtName.stroke = 2; txtName.text = "设置全局字体无效"; Laya.stage.addChild(txtName);   2017-12-27 添加评论 免费帖 --> 分享 ...

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

562. laya.display.cmd.StrokeTextCmd [ 72%]

...mentationAll Packages | All Classes | Index | Frames No Frames StrokeTextCmdProperties | Methods | Constants Packagelaya.display.cmdClasspublic class StrokeTextCmdInheritanceStrokeTextCmd Object 绘制描边文字 Public Properties PropertyDefined By  color : String 定义文本颜色,...

来源: Laya2.0_api 发布时间: 20190513

563. Input不能调出输入法 [ 72%]

...ut不能调出输入法,点击就报laya.wxmini.js第637行 _inputTarget.text can not read property 'text' of undefined,用别的设备测试都正常,只有我的华为Mate40pro会报错,后来发现是Laya.Input.focus里面的target没设置上,我修改了一下就正常了,不知道...

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

564. list 怎么嵌套赋值呢? [ 72%]

...呢? 如图,我想对list进行嵌套赋值,因为例子arr.push({myText1:text="123"}) 我想push里面能同时对myText2  myText3赋值 但myText2是另一个box的子物体,能否给个示例该怎么写呢? 附件 : --> 2018-01-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

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

...--------------------------------------- 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

566. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 72%]

...符串。如果请求未完成或失败,则该值为 `null` | | responseText | DOMString | 此次请求的响应为文本,或是当请求未成功或还未发送时为 `null`**只读。** | | responseType | XMLHttpRequestResponseType | 设置该值能够改变响应类型。就是告诉服务器...

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

567. 调用Laya.Geolocation,程序卡死 [ 72%]

...程序卡死 if (!Laya.Geolocation.supported) { console.log(11) this.txt.text = "11"; }else{ console.log(3333) this.txt.text = "22"; } 代码运行到这里就不往下运行 了,控制台也不输出,什么问题? 2018-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

568. 显示文本组件 · LayaAir3.0文档 · LAYABOX [ 72%]

...中拖拽添加。 (图1-1) Label组件拖放到编辑区后,设置 text 属性的值为 LayaAir IDE 后的显示效果如下: (图1-2) 1.2 Label 属性 (图1-3) 属性 功能说明 text 文本的实际内容 font 文本的字体名称,例如:Microsoft YaHei,这里可以手动...

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

569. UI-Label [ 72%]

...Label(); Laya.stage.addChild(label); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } return label; } } new UI_Label();module laya { import Stage = Laya.Stage; impo...

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

570. laya.html.UBBParser_API3.0 [ 72%]

... = new UBBParser() Defined in laya/html/UBBParser.ts:6 Methods parse parse(text: string, remove?: boolean): string Defined in laya/html/UBBParser.ts:126 Parameters text: string Optional remove: boolean Returns string Globals "laya/html/UBBParser" UBBParser constructor defaultImgHeight defaultImgWidt...

来源: Laya3.0_api 发布时间: 20231115