大约有 1,054 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0068 秒)
Laya_社区(682) Laya3.0_api(99) Laya2.0_api(84) Laya2.0_文档(75) laya_api(66) Laya3.0_文档(46) Laya2.0_示例(1) Laya_示例(1)
...th: number = 1 (可选)边框宽度。 Optional percent: boolean 位置和大小是否是百分比值。 Returns DrawRectCmd drawTexture drawTexture(texture: Texture | null, x?: number, y?: number, width?: number, height?: number, matrix?: Matrix | null, alpha?: number, color?: string | null, bl...
来源: Laya3.0_api 发布时间: 20231115
loadImage加载资源的同时指定x,y和sprite对象指定x,y相同的值为什么结果不同 var ape = new Sprite(); ape.loadImage("../bin/res/images/2.png",(Laya.stage.width)/2,(Laya.stage.height)/2); 效果和 ape.x=(Laya.stage.width)/2; ape.y=(Laya.stage.height)/2;不同这是为什么?...
来源: Laya_社区 发布时间: 20170717
...th: number = 1 (可选)边框宽度。 Optional percent: boolean 位置和大小是否是百分比值。 Returns DrawRectCmd drawTexture drawTexture(texture: Texture | null, x?: number, y?: number, width?: number, height?: number, matrix?: Matrix | null, alpha?: number, color?: string | null, bl...
来源: Laya3.0_api 发布时间: 20231115
...th: number = 1 (可选)边框宽度。 Optional percent: boolean 位置和大小是否是百分比值。 Returns DrawRectCmd drawTexture drawTexture(texture: Texture | null, x?: number, y?: number, width?: number, height?: number, matrix?: Matrix | null, alpha?: number, color?: string | null, bl...
来源: Laya3.0_api 发布时间: 20231115
...为显示对象的 transform 属性。这些转换函数包括平移(x 和 y 重新定位)、旋转、缩放和倾斜。 Hierarchy Matrix Index Constructors constructor Properties a b c d tx ty TEMP Methods clone concat copyTo destroy getScaleX getScaleY identity invert invertTransformPoint reco...
来源: Laya3.0_api 发布时间: 20231115
...umber, y: number): number Defined in laya/maths/Point.ts:68 计算当前点和目标点(x,y)的距离。 Parameters x: number 水平坐标。 y: number 垂直坐标。 Returns number 返回当前点和目标点之间的距离。 normalize normalize(): void Defined in laya/maths/Point.ts:80 标准...
来源: Laya3.0_api 发布时间: 20231115
...PI 第三个问题:关于创建 Graphics 类的 beginGradientFill() 和 lineGradientStyle() 方法所需的矩阵的特定样式? 解答:请参考:Matrix API,关于渐变的一些方法目前还没有提供接口,之后会实现。具体目前可使用的方法和属性请参考A...
来源: Laya_社区 发布时间: 20160627
...ndroid 端调整 “在屏 Canvas” 的放缩策略 TextInput重写onFocus和onBlur事件监听不到 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 发布后的js能不能全部变成.min.js(就像egretwing发版后),这样一定程度上...
来源: Laya_社区 发布时间: 20180226
...。 * @param lineWidth (可选)边框宽度。 * @param percent 位置和大小是否是百分比值。 */ drawRect(x: number, y: number, width: number, height: number, fillColor: any, lineColor: any = null, lineWidth: number = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd....
来源: Laya3.0_文档 发布时间: 20240910
关于LAYA TS重写X和Y坐标的问题 在LAYA TS里 是不能直接重写X和Y的 因为重写必须直接操作_x和_y 这样程序就不能通知到Native 导致打包后坐标始终是00 而在LAYA AS3环境里却是可以重写的 因为AS3可以super.x super.y 打个比方 假设在LAYA TS ...
来源: Laya_社区 发布时间: 20180227