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

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

21. laya.d3.math.Viewport_API3.0 [ 94%]

...iewport Index Constructors constructor Properties height maxDepth minDepth width x y _tempViewport Methods cloneTo project set unprojectFromMat unprojectFromWVP Constructors constructor new Viewport(x?: number, y?: number, width?: number, height?: number): Viewport Defined in laya/d3/math/Viewport.t...

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

22. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 94%]

...l.getBounds(); // 设置位置 this.pos(42,399); this.tower.pos((boundBall.width - boundTower.width)/2+data.tower[towerLel].c1, -data.tower[towerLel].h+data.tower[towerLel].c2); this.aeroboat.pos((boundBall.width - boundTower.width)/2+data.tower[towerLel].c1 - 2*boundAeroboat.width/3 ,-data.tower[to...

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

23. 输入设备-指南针 [ 94%]

...assImg); compassImg.loadImage(compassImgPath); compassImg.pivot(compassImg.width / 2, compassImg.height / 2); compassImg.pos(Laya.stage.width / 2, 400); } function drawUI() { var canvas = new Sprite(); Laya.stage.addChild(canvas); canvas.graphics.drawLine(compassImg.x, 50, compassImg.x, 182, "#FFFFF...

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

24. 输入设备-指南针 [ 94%]

...assImg); compassImg.loadImage(compassImgPath); compassImg.pivot(compassImg.width / 2, compassImg.height / 2); compassImg.pos(Laya.stage.width / 2, 400); } createDirectionIndicator() { const Sprite = Laya.Sprite; directionIndicator = new Sprite(); Laya.stage.addChild(directionIndicator); directionInd...

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

25. laya.ui.AutoBitmap [ 94%]

...。 AutoBitmap  source : Texture 对象的纹理资源。 AutoBitmap  width : Number 表示显示对象的宽度,以像素为单位。 AutoBitmapPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By alpha(alpha:Number):AlphaCmd 设置透明度。 Graphic...

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

26. laya.resource.Texture [ 94%]

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

来源: laya_api 发布时间: 20170929

27. 绘制图形 · LayaAir3.3 · 引擎文档 · LAYABOX [ 93%]

...寸的百分比,当不勾选时,矩形的尺寸为像素大小。 Line Width:绘制矩形的边框宽度值。 Line Color:绘制矩形的边框颜色。 Fill Color:矩形填充的颜色。 动图2-2演示了这些属性的操作过程: (动图2-2) 2.2 代码绘制矩形 LayaAir引擎...

来源: Laya3.0_文档 发布时间: 20240910

28. laya.ui.AutoBitmap [ 93%]

...。 AutoBitmap  source : Texture 对象的纹理资源。 AutoBitmap  width : Number 表示显示对象的宽度,以像素为单位。 AutoBitmapPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By alpha(value:Number):void 设置透明度。 Graphics ...

来源: laya_api 发布时间: 20170929

29. UI-Tree [ 93%]

..."clipY": "3"}}, {"type": "Label", "props": {"y": "1", "text": "treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "...

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

30. UI-Tree [ 93%]

...emRender = Item; tree.xml = xml; tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } const Box = Laya.Box, Clip = Laya.Clip, Label = Laya.Label; // 此类对应的json对象: // {"child": [{"type": "Clip"...

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