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

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

11. 2D物理-复合碰撞器 [ 96%]

...x = 200; Laya.Config.isAntialias = true; Laya.Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable({ gravity: 0 }); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.ALIGN...

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

12. laya.resource.Texture [ 96%]

...ber = 0原始高度(包括被裁剪的透明区域)。Texture  sourceWidth : Number = 0原始宽度(包括被裁剪的透明区域)。Texture  url : String = null图片地址Texture  uv : ArrayTexture  width : Number 实际宽度。TexturePublic Methods Hide Inherited Public Methods ...

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

13. laya.ui.AutoBitmap_API3.0 [ 95%]

...nstructor Properties _color uv Accessors cmds color height sizeGrid source width Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture ge...

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

14. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 95%]

...oding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="144" height="590" mouseEnabled="true">                 <mx:Canvas width="144" height="590" x="0" y="0" horizontalScrollPolicy="off" verticalScrollPolicy="off">                     &l...

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

15. 性能测试-虫子(慎入) [ 95%]

...s = []; var wrapBounds; var maggotTexture; (function() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#000000"; Stat.show(); wrapBounds = new Rectangle(-padding, -padding, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handle...

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

16. 滤镜-颜色滤镜 [ 95%]

... = Laya.Stage; // 不支持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"; Laya.loader.load(apePath, Laya.Handler...

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

17. laya.display.Graphics_API3.0 [ 95%]

...组,不建议回收 Returns void clipRect clipRect(x: number, y: number, width: number, height: number): ClipRectCmd Defined in laya/display/Graphics.ts:304 设置剪裁区域,超出剪裁区域的坐标不显示。 Parameters x: number X 轴偏移量。 y: number Y 轴偏移量。 width: number...

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

18. 滤镜-颜色滤镜 [ 95%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(t...

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

19. 性能测试-虫子(慎入) [ 95%]

...aya.Rectangle; // 不支持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"; Stat.show(); wrapBounds = new Rectangl...

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

20. laya.ani.GraphicsAni_API3.0 [ 94%]

...组,不建议回收 Returns void clipRect clipRect(x: number, y: number, width: number, height: number): ClipRectCmd Inherited from Graphics.clipRect Defined in laya/display/Graphics.ts:304 设置剪裁区域,超出剪裁区域的坐标不显示。 Parameters x: number X 轴偏移量。 y: numbe...

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