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

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

1. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...etComponent(Laya.Mesh2DRender); mesh2Drender.sharedMesh = this.generateRectVerticesAndUV(1000, 1000); mesh2Drender.lightReceive = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = ne...

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

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

...ddComponent(Laya.Mesh2DRender); mesh2Drender.sharedMesh = this.generateRectVerticesAndUV(1000, 1000); mesh2Drender.texture = tex; mesh2Drender.lightReceive = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Arra...

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

3. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 96%]

...种方法是通过代码创建的方法,参考第三节中generateCircleVerticesAndUV和generateRectVerticesAndUV的代码。 2.3 纹理与颜色 纹理的选择不一定要与创建网格时选择的图片相同。例如,创建网格使用的是图2-6中的图片, (图2-6) 纹理可以使...

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

4. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...类型:none:无滚动(默认),horizontal:水平方向滚动,vertical:垂直方向滚动,both:水平与垂直都滚动 TextArea是一个用于多行的文本域,相较于TextInput的区别是它可以添加垂直滚动条皮肤和水平滚动条皮肤。水平方向滚动效果...

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

5. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...,以像素为单位 排列方向 direction 单选框的排列方向。有vertical(垂直排列)和horizontal(水平排列)两种 选中项索引 selectedIndex 选择索引,默认为-1。设置后,单选框会保持选中状态。索引数量会根据labels数量(单选框数量)动...

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

6. CommandBuffer · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...ScreenTriangle(downRenderTexture,blurTexture,null,shader,shaderValue,1); //vertical blur buf.blitScreenTriangle(blurTexture,downRenderTexture,null,shader,shaderValue,2); //Horizontal blur buf.blitScreenTriangle(downRenderTexture,blurTexture,null,shader,shaderValue,1); //vertical blur buf.blitScreenT...

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

7. 字体切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...容排列方向,共有两个选项。horizontal:水平方向排列,vertical:垂直方向排列。切换后以下两个属性也会随之切换 水平间距 spacex X方向项间隔,以像素为单位。仅在布局方向开启水平方向是有效。 垂直间距 spacey Y方向项间隔,...

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

8. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...y = data; // 设置List属性效果 this.list.scrollType = Laya.ScrollType.Vertical;//设置列表使用垂直滚动 this.list.vScrollBarSkin = "";//隐藏列表的滚动条皮肤 this.list.elasticEnabled = true;//设置橡皮筋为ture this.list.scrollBar.elasticBackTime = 200;//设置橡皮筋回...

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

9. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...EIGHT: number = 165 / 3; private HORIZONTAL_SPACING: number = 200; private VERTICAL_SPACING: number = 100; private xOffset: number; private yOffset: number; private skins: any[]; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { /...

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

10. 导航标签组组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...以像素为单位 排列方向 direction 导航标签的排列方向。有vertical(垂直排列)和horizontal(水平排列)两种 选中项索引 selectedIndex 选择索引,默认为0。设置后,导航标签会保持选中状态。索引数量会根据labels数量(标签数量)动...

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