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

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

221. 垂直滑动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...id { let vs: Laya.Slider = new Laya.VSlider(); vs.skin = "vslider.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100; vs.value = 50; vs.tick = 1; vs.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(vs); } private onChange(value: number): void { console.log("...

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

222. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 71%]

... Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.l...

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

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

...rollBar.skin = "../../../../res/ui/vscroll.png"; //设置高度 vScrollBar.height = 200; //设置位置 vScrollBar.pos(400, 200); //最低滚动位置数字 vScrollBar.min = 0; //最高滚动位置数字 vScrollBar.max = 100; //滚动变化事件回调 vScrollBar.changeHandler = new Handler(this, on...

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

224. 多种碰撞器形状(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 71%]

...g)(图5) ```typescript var raidius:number = Math.random() * 0.2 + 0.2; var height:number = Math.random() * 0.5 + 0.8; //创建胶囊MeshSprite3D var capsule = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createCapsule(raidius, height))) as Laya.MeshSprite3D; //创建刚体碰撞器 var ri...

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

225. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y = Laya.stage.height/2; this.sprite.size(512, 313); //大小 this.sprite.width = 512; //宽、高分别设...

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

226. 【分享】[UI组件专题] Label 与 Button (附:九宫格,九妹图) [ 71%]

...值设为36,align选择为center,调整Lebel的宽高,width为 150,height为60(读者也可以自行修改面板数值或在画布中用鼠标拉伸调整)在<其他>标签中设置bgColor值为#e7c5c5,borderColor设置为#000000(标签边框设为黑色),italic设置为tru...

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

227. Sprite 设置高度后,再次添加子对象,重新设置高度无效 [ 71%]

...,再次添加子对象,重新设置高度无效 第一次设置Sprite.height=1000;正常。当我点击一个按钮,给Sprite里面添加一些子对象后,1000高度不够,然后在设置Sprite.height=2000;无效了,还是1000的高度。没有变,我的Sprite外面有一个panel...

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

228. 一篇了解所有的LayaAir文本组件(TypeScript-LayaAir基础篇(TS)-文本) [ 71%]

...| `padding:10px 10px 20px 20px;` | 边缘的距离(上右下左) | | `line-height:100px;` | 行高(仅div中使用) | | `align:left|right|center` | 水平对齐方式(仅div中使用) | | `background-color:#ff0000;` | 背景颜色(仅div中使用) | | `border-color:#ff0000;` | 边框...

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

229. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 71%]

... Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https...

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

230. html富文本转换成Layabox内参数 [ 70%]

...i里的组件呢,比如获取到: "<span style='color:#ffffff; line-height:20px'>.....</span>" 要给label组建赋值颜色等属性 2017-07-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 yuron...

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