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

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

1. laya.maths.Rectangle [ 100%]

... 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度高度定义的区域。 Rectangle 类的 xy、width height 属性相互独立;更改一个属性的值不会影响其他属性。 Public Properties PropertyDefined By  bottom : Number[read-only] 此矩形底...

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

2. laya.display.Graphics [ 99%]

...。 Graphics  restore():RestoreCmd 返回之前保存过的路径状态属性。 Graphics  rotate(angle:Number, pivotX:Number = 0, pivotY:Number = 0):RotateCmd 旋转当前绘图。(推荐使用transform,性能更高) Graphics  save():SaveCmd 保存当前环境的状态。 Graphics  sca...

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

3. laya.maths.Point [ 99%]

...象池创建 Point  distance(x:Number, y:Number):Number 计算当前点目标点(xy)的距离。 Point  normalize():void 标准化向量。 Point  recover():void 回收到对象池,方便复用 Point  reset():Point 重置 Point  setTo(x:Number, y:Number):Point 将 Point 的成员...

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

4. laya.maths.Matrix [ 98%]

...为显示对象的 transform 属性。这些转换函数包括平移(x y 重新定位)、旋转、缩放倾斜。 Public Properties PropertyDefined By  a : Number缩放或旋转图像时影响像素沿 x 轴定位的值。Matrix  b : Number旋转或倾斜图像时影响像素沿 y ...

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

5. laya.resource.Texture [ 93%]

...dth:Number = 0, sourceHeight:Number = 0):Texture[static] 根据指定资源坐标、宽高、偏移量等创建 Texture 对象。 Texture  createFromTexture(texture:Texture, x:Number, y:Number, width:Number, height:Number):Texture[static] 截取Texture的一部分区域,生成新的Texture,...

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

6. laya.utils.Utils [ 92%]

...ngle[static] 计算传入的显示对象 Sprite 的全局坐标系的坐标缩放值,返回 Rectangle 对象存放计算出的坐标X值、Y值、ScaleX值、ScaleY值。 Utils  getQueryString(name:String):String[static] 获得URL参数值 Utils  getTransformRelativeToWindow(coordinateSpace...

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

7. laya.ui.AutoBitmap [ 92%]

...片。 Graphics restore():RestoreCmd 返回之前保存过的路径状态属性。 Graphics rotate(angle:Number, pivotX:Number = 0, pivotY:Number = 0):RotateCmd 旋转当前绘图。(推荐使用transform,性能更高) Graphics save():SaveCmd 保存当前环境的状态。 Graphics scale(sc...

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

8. laya.device.motion.AccelerationInfo [ 90%]

...均为m/s²。 在硬件(陀螺仪)不支持的情况下,alpha、betagamma值为null。 Public Properties PropertyDefined By  x : Number x轴上的加速度值。 AccelerationInfo  y : Number y轴上的加速度值。 AccelerationInfo  z : Number z轴上的加速度值。 Acceleratio...

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

9. laya.display.Sprite [ 87%]

...rue,然后再获取宽高。Sprite的宽高一般用于进行碰撞检测排版,并不影响显示图像大小,如果需要更改显示图像大小,请使用 scaleX , scaleY , scale。 Sprite 默认不接受鼠标事件,即mouseEnabled=false,但是只要对其监听任意鼠标事...

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

10. laya.display.cmd.StrokeTextCmd [ 87%]

...本颜色,比如"#ff0000"。 StrokeTextCmd  font : String 定义字体字号,比如"20px Arial"。 StrokeTextCmd  lineWidth : Number 线条宽度。 StrokeTextCmd  text : String 在画布上输出的文本。 StrokeTextCmd  textAlign : String 文本对齐方式,可选值:"left",...

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