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

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

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

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

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

2. 2D光遮挡器与阴影 · LayaAir3.4 · 引擎文档 · LAYABOX [ 93%]

...tReceive = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[inde...

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

3. 弹窗视图组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 90%]

...场景类继承而来。 拖动区域 dragArea 拖动区域(格式:x,y,width,height),默认值为"0,0,0,0" 模式窗口 isModal 是否是模式窗口,默认为false。为模式窗口时,点击弹窗空白处,可自动关闭该弹窗 显示弹窗效果 isShowEffect 是否显示弹出效...

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

4. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 88%]

...现这种效果。 var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; te...

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

5. 显示文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 88%]

...,此方法只执行一次 */ onAwake(): void { this.lab.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.lab.size(500, 30); //大小 this.lab.pivot(this.lab.width/2, this.lab.height/2); //轴心点 this.lab.text = "大家好,欢迎大家来到LayaAir IDE"; //文本...

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

6. 基础文本 · LayaAir3.4 · 引擎文档 · LAYABOX [ 88%]

...t;/li> <li>橘子</li> 定义列表 <img src='image_url' width = 200 height=100/> <img src='atlas/comp/image.png' width = 200 height=100/> 显示一张图片,还可以使用百分比指定图片的大小 <a href='xxx'>link text</a> <a href='www.layabox.com...

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

7. 水平布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 85%]

...三个选项。none:无自适应模式,both:宽高自适应模式,width:宽度自适应模式。 space属性就是设置子对象之间的水平间隔,以像素为单位,可以自行输入数字,也可以通过鼠标左键长按滑动来输入数值。假设HBox有三个Button组件...

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

8. 进度条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 84%]

...res/ui/progressBar.png"); this.progressBar.pos(100, 500); this.progressBar.width = 400; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); }); } // 模拟...

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

9. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 82%]

...,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txtin.fontSize = 50...

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

10. 字体切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 77%]

...,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontClip_num.png"; thi...

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