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

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

211. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 71%]

...宽高 comboBox.autoSize = true; //设置位置 comboBox.pos((Laya.stage.width - comboBox.width) / 2, 150); //自动计算宽高关闭(在设置位置时,需获取列表宽度,获取后关闭) comboBox.autoSize = false; //创建选择提示信息框 createPromptText() } /***创建提示信...

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

212. laya.display.Text_API3.0 [ 71%]

...对象的属性 y 的值,用于控制 text 对象的显示位置。 text.width = 300;//设置 text 的宽度。 text.height = 200;//设置 text 的高度。 text.italic = true;//设置 text 的文本显示为斜体。 text.borderColor = "#fff000";//设置 text 的文本边框颜色。 Laya.stage.a...

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

213. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 71%]

... var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showMsgFunc = function () { this.text = "ShowMsg"; this.color = "red"; }.bind(_lab); })); ``` 最...

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

214. Laya下怎么实现复制 [ 71%]

...n.localToGlobal(new Laya.Point(this.lbtn.x,this.lbtn.y)); pt.x -=this.lbtn.width /2; pt.y -=120; var gd=GameData.userData; this.yqm.text=gd.invCode; this.dt.text="邀请次数 "+gd.invFriends+"/99" var iframe = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布...

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

215. 绘制能力 · LayaAir3.4 · 引擎文档 · LAYABOX [ 70%]

...寸的百分比,当不勾选时,矩形的尺寸为像素大小。 Line Width:绘制矩形的边框宽度值。 Line Color:绘制矩形的边框颜色。 Fill Color:矩形填充的颜色。 动图2-2演示了这些属性的操作过程: (动图2-2) 2.2 代码绘制矩形 LayaAir引擎...

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

216. 3D中摄像机绕物体旋转该如何实现? [ 70%]

.... /// </summary> public center: Transform3D; /// <summary> /// Width of area. /// </summary> public width: number; /// <summary> /// Length of area. /// </summary> public length: number; /// <summary> /// Constructor. /// </summary> /// <param name="cente...

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

217. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 70%]

... var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showMsgFunc = function () { this.text = "ShowMsg"; this.color = "red"; }.bind(_lab); })); ``` 最...

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

218. HTMLDivElement富文本居右问题 [ 70%]

...TMLDivElement富文本居右问题 const lb: HTMLDivElement = this.lb; lb.width = 100; lb.height = 24; const html1 = '<div style="float:right;"><span>1</span><span>2</span></div>'; const html2 = '<span style="float:right;">1</span>'; const html3 = '&l...

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

219. 官方案例里摄像机绕物体旋转脚本的问题 [ 70%]

.... /// </summary> public center: Transform3D; /// <summary> /// Width of area. /// </summary> public width: number; /// <summary> /// Length of area. /// </summary> public length: number; /// <summary> /// Constructor. /// </summary> /// <param name="cente...

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

220. LayaNative端使用.ttf字体 [ 70%]

...哈哈哈哈哈哈哈哈哈哈哈哈哈!"; Laya.stage.addChild(text); text.width=100; text.height=100; } } } 2016-12-19 0 6 分享 微博 QZONE 微信 皮 赞同来自: Browser.window.conch这个是未定义的,不会执行Browser.window.conch.setFontFaceFromBuffer("hu",arr);这句话。怎么回...

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