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

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

41. 分享一个Graphics画圆角矩形的封装 [ 91%]

... * @param y   开始绘制的 Y 轴位置。          * @param width  矩形宽度。          * @param height 矩形高度。          * @param round     矩形圆角半径。          * @param fillColor 填充颜色,或者填充绘图的渐变对象。 ...

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

42. UI-Clip [ 91%]

...howBg() { var bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } function createTimerAnimation() { counter = new Clip(clipSkin, 10, 1); counter.autoPlay = true; counter.interval = 1000; counter.x = (Laya...

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

43. laya.utils.HTMLChar [ 91%]

...(英文|.|数字)。HTMLChar  style : CSSStyle CSS 样式。HTMLChar  width : Number 宽度。 HTMLChar  x : Number 此对象存储的 X 轴坐标值。 当设置此值时,如果此对象有绑定的 Sprite 对象,则改变 Sprite 对象的属性 x 的值。 HTMLChar  y : Number 此对...

来源: laya_api 发布时间: 20170422

44. TiledMap.moveViewPort(x,y) 为嘛要传入负数 [ 91%]

... tmapsp.zOrder=1;         this.tMap.changeViewPort(-((Laya.stage.width-this.tMap.width)/2),-((Laya.stage.height-this.tMap.height)/2),this.tMap.width,this.tMap.height);         this.addChild(this.tMap.mapSprite()); 请问这是什么意思啊 2020-04-20 添加评论 免费帖 --> 分...

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

45. laya.resource.NativeContext_API3.0 [ 91%]

...(x: number, y: number, radius: number, fillColor: any, lineColor: any, lineWidth: number, vid: number): void Defined in laya/resource/NativeContext.ts:442 Parameters x: number y: number radius: number fillColor: any lineColor: any lineWidth: number vid: number Returns void _drawLine _drawLine(x: num...

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

46. 计时器-间隔循环 [ 91%]

...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 = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() ...

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

47. Spine骨骼动画点击区域偏移 获取不到width height [ 91%]

Spine骨骼动画点击区域偏移 获取不到width height Spine骨骼动画点击区域偏移 获取不到width height  下面是模型文件   private _factory: Laya.Templet;  constructor(spine, x, y, speed) {         this._factory = new Laya.Templet();         this._factory.loadAni(...

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

48. normalizedViewport修改问题 [ 91%]

...ce){ var vp=this._viewport; var size=this.renderTargetSize; var sizeW=size.width; var sizeH=size.height; this._normalizedViewport.x=vp.x / sizeW; this._normalizedViewport.y=vp.y / sizeH; this._normalizedViewport.width=vp.width / sizeW; this._normalizedViewport.height=vp.height / sizeH; } return this...

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

49. UI-Clip [ 91%]

...ya.Image; let bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } createTimerAnimation() { const Clip = Laya.Clip; this.counter = new Clip(clipSkin, 10, 1); Laya.stage.addChild(this.counter); this.counter...

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

50. laya.display.cmd.DrawEllipseCmd_API3.0 [ 91%]

...d Hierarchy DrawEllipseCmd Index Properties fillColor height lineColor lineWidth percent width x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawEllipseCmd.ts:27 填充颜色,或者填充绘图的渐变对象。 height height: number Defined ...

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