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

大约有 715 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)

61. Sprite-新手引导 [ 90%]

...skArea); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000"); // 绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); guideContainer.addChild(interactionArea); // 设置叠加模式 interacti...

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

62. laya.display.cmd.DrawRoundRectCmd_API3.0 [ 89%]

...rarchy DrawRoundRectCmd Index Properties fillColor height lb lineColor lineWidth lt percent rb rt width x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawRoundRectCmd.ts:43 填充颜色,或者填充绘图的渐变对象。 height height: numb...

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

63. laya.display.cmd.DrawImageCmd_API3.0 [ 89%]

... 绘制图片 Hierarchy DrawImageCmd Index Properties color height texture width x y ID Methods recover Properties color color: number = 4294967295 Defined in laya/display/cmd/DrawImageCmd.ts:34 (可选)绘图颜色 height height: number Defined in laya/display/cmd/DrawImageCmd.ts:31 (可选...

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

64. Native(android)下创建二维码并显示在页面上 [ 89%]

...     // androidplat,创建二维码     createQrCode(url:string, width:number, height:number):string {         return this._bridge.call("createQrCode", url, width, height);     }     // 以下android代码 // JSBridge.javapublic static String createQrCode(final String c...

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

65. 【解决】富文本html下划线换行bug [ 89%]

...; graphic.drawLine(words[0].x,firstlineY,words[slsIndex].x+words[slsIndex].width,firstlineY,color,1); let secondLineY = words[slsIndex+1].y + words[slsIndex+1].height; graphic.drawLine(words[slsIndex+1].x,secondLineY,lastWords.x+lastWords.width,secondLineY,color,1); }else{ graphic.drawLine(words[0]....

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

66. laya.physics.BoxCollider [ 89%]

...为0ColliderBase rigidBody : RigidBody[只读]刚体引用ColliderBase  width : Number矩形宽度BoxCollider  x : Number相对节点的x轴偏移BoxCollider  y : Number相对节点的y轴偏移BoxColliderPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefine...

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

67. laya.display.cmd.DrawPathCmd_API3.0 [ 89%]

...athCmd.ts:30 (可选)画笔定义,支持以下设置{strokeStyle,lineWidth,lineJoin:"bevel|round|miter",lineCap:"butt|round|square",miterLimit}。 x x: number Defined in laya/display/cmd/DrawPathCmd.ts:14 开始绘制的 X 轴位置。 y y: number Defined in laya/display/cmd/DrawPathCmd.ts:18 ...

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

68. laya.utils.Utils [ 89%]

...itDOMElementInArea(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils  getGID():int[static] 获取一个全局唯一ID。Utils  getGlobalPosAndScale(sprite:Sprite):Rectangle[static] 计算传入...

来源: laya_api 发布时间: 20170929

69. 引擎 TiledMap 居然不支持图块翻转 [ 89%]

...                if (this.x < 0 || this.x > this._map.viewPortWidth || this.y < 0 || this.y > this._map.viewPortHeight) {                     this.hide();                 }                 else {                     this.show();           ...

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

70. loadImage加载资源的同时指定x,y和sprite对象指定x,y相同的值为什么结果不同 [ 89%]

...ar 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;不同这是为什么? 2017-07-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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