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

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

1. laya.maths.Rectangle [ 100%]

... 确定)以及宽度和高度定义的区域。 Rectangle 类的 xywidth 和 height 属性相互独立;更改一个属性的值不会影响其他属性。 Public Properties PropertyDefined By  bottom : Number[read-only] 此矩形底端的 Y 轴坐标。y 和 height 属性的和。Rectan...

来源: laya_api 发布时间: 20170929

2. laya.maths.Rectangle [ 99%]

... 确定)以及宽度和高度定义的区域。 Rectangle 类的 xywidth 和 height 属性相互独立;更改一个属性的值不会影响其他属性。 Public Properties PropertyDefined By  bottom : Number[read-only] 此矩形底端的 Y 轴坐标。y 和 height 属性的和。Rectan...

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

3. 输入设备-贪吃蛇(重力感应) [ 99%]

...wser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; function Segment(width, height) { Segment.super(this); Segment.prototype.init = function() { this.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50"); } // 获取关节另一头位置 Segment.prototype.getPinPositio...

来源: Laya_示例 发布时间: 20250311

4. 输入设备-贪吃蛇(重力感应) [ 98%]

...a.Accelerator; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; // 初始化蛇 this.initSnake(); // ...

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

5. layaUI.max.all.js 这个文件怎么生成的? [ 98%]

..."child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp...

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

6. laya.maths.Rectangle_API3.0 [ 98%]

... 确定)以及宽度和高度定义的区域。 Rectangle 类的 xywidth 和 height 属性相互独立;更改一个属性的值不会影响其他属性。 Hierarchy Rectangle Index Constructors constructor Properties height width x y TEMP Accessors bottom right Methods addPoint clone conta...

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

7. laya.display.Graphics [ 97%]

... true):void 清空绘制命令。 Graphics  clipRect(x:Number, y:Number, width:Number, height:Number):ClipRectCmd 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics  destroy():void 销毁此对象。 Graphics  drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineCo...

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

8. laya.display.Graphics [ 97%]

...false):void 清空绘制命令。 Graphics  clipRect(x:Number, y:Number, width:Number, height:Number):void 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics  destroy():void 销毁此对象。 Graphics  drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* =...

来源: laya_api 发布时间: 20170929

9. 用laya自带的ui编辑器 编辑了一个ui界面,怎么加载啊? 怎么写代码让这个ui界面, 在程序运行时,显示出来啊? [ 97%]

..."child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp...

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

10. 请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 [ 96%]

...批量绘制同样纹理。 是把 x X 轴偏移量。 y Y 轴偏移量。 width 宽度。 height 高度。 m 矩阵信息。 把这几个参数组成一个json对象,然后再把多个json组成数组传入吗? 像这样吗drawTextures(texture, [{x:0, y:0, width:128, height:64}, {x:128, y:0, wi...

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