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

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

1. laya.maths.Rectangle_API3.0 [ 100%]

... 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度高度定义的区域。 Rectangle 类的 xy、width height 属性相互独立;更改一个属性的值不会影响其他属性。 Hierarchy Rectangle Index Constructors constructor Properties height width x y TEM...

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

2. laya.display.Graphics_API3.0 [ 99%]

...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

3. laya.ani.GraphicsAni_API3.0 [ 99%]

...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

4. laya.ui.AutoBitmap_API3.0 [ 98%]

...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

5. laya.maths.Matrix_API3.0 [ 98%]

...为显示对象的 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

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

...umber, y: number): number Defined in laya/maths/Point.ts:68 计算当前点目标点(xy)的距离。 Parameters x: number 水平坐标。 y: number 垂直坐标。 Returns number 返回当前点目标点之间的距离。 normalize normalize(): void Defined in laya/maths/Point.ts:80 标准...

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

7. laya.utils.SpriteUtils_API3.0 [ 93%]

...eUtils.ts:37 计算传入的显示对象 Sprite 的全局坐标系的坐标缩放值,返回 Rectangle 对象存放计算出的坐标X值、Y值、ScaleX值、ScaleY值。 Parameters sprite: Sprite Sprite 对象。 Returns Rectangle 矩形对象 Rectangle Static getTransformRelativeToWindow getT...

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

8. laya.device.motion.AccelerationInfo_API3.0 [ 92%]

...均为m/s²。 在硬件(陀螺仪)不支持的情况下,alpha、betagamma值为null。 author Survivor Hierarchy AccelerationInfo Index Constructors constructor Properties x y z Constructors constructor new AccelerationInfo(): AccelerationInfo Defined in laya/device/motion/AccelerationInfo...

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

9. laya.events.InputManager_API3.0 [ 91%]

... = 10 Defined in laya/events/InputManager.ts:26 如果鼠标按下的位置弹起的位置距离超过这个阀值,则不视为一次点击 Static isTextInputting isTextInputting: boolean = false Defined in laya/events/InputManager.ts:33 当前是否正在输入文字 Static isiOSWKwebView isiO...

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

10. laya.display.cmd.FillTextCmd_API3.0 [ 90%]

...: string): void Defined in laya/display/cmd/FillTextCmd.ts:124 定义字号字体,比如"20px Arial"。 Returns string Defined in laya/display/cmd/FillTextCmd.ts:128 定义字号字体,比如"20px Arial"。 Parameters value: string Returns void stroke get stroke(): number set stroke(value:...

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