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

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

81. 绘画圆角矩形的工具,直接用,不用自己去算 [ 88%]

... x 开始绘制的x轴位置 * @param y 开始绘制的y轴位置 * @param width 矩形宽 * @param height 矩形高 * @param roundRadius 圆角半径 * @param fillColor 填充颜色 * @param borderColor 边框填充颜色 * @param borderWidth 边框大小 * @return DrawPathCmd 对象 */ public stat...

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

82. 为啥 增加 Text ,drawcall 暴增 ?????????????? [ 88%]

...ngth = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.scoreItem.height; this.scoreBox.addChild(fish.scoreItem); fish.scoreGold = new Laya.Image(); fish.scoreGold.ski...

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

83. 其他引擎的Demo-Example_04 [ 87%]

...h.random() / 20), sy = 1.0 + (Math.random() / 20), stars = [], w = Browser.width, h = Browser.height, slideX = w / 2, slideY = h / 2, speedInfo; class PIXI_Example_04 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // ...

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

84. ???????? 为啥加一个 Text,drawcall 暴增? [ 87%]

...ngth = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.scoreItem.height; this.scoreBox.addChild(fish.scoreItem); fish.scoreGold = new Laya.Image(); fish.scoreGold.ski...

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

85. 没有预加载的图片怎么获取width和height ? [ 87%]

没有预加载的图片怎么获取width和height ? new了一个Image,使用的没有预加载的图片,getGraphicBounds得到的width 和 height 都是 0,,怎么知道width和height? 2017-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

86. laya.display.cmd.DrawCurvesCmd_API3.0 [ 87%]

...vesCmd 绘制曲线 Hierarchy DrawCurvesCmd Index Properties lineColor lineWidth points x y ID Methods getBoundPoints recover Properties lineColor lineColor: any Defined in laya/display/cmd/DrawCurvesCmd.ts:27 线段颜色,或者填充绘图的渐变对象。 lineWidth lineWidth: number Defined in...

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

87. laya.utils.SpriteUtils_API3.0 [ 87%]

...tDOMElementInArea(dom: any, coordinateSpace: Sprite, x: number, y: number, width: number, height: number): void Defined in laya/utils/SpriteUtils.ts:131 使DOM元素使用舞台内的某块区域内。 Parameters dom: any DOM元素引用 coordinateSpace: Sprite 坐标空间,不能是Stage引用 x:...

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

88. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 87%]

...     planecoll.x = 0;         planecoll.y = 0;         planecoll.width = 2775         planecoll.height = 89         chacoll.width = 80         chacoll.height = 120         this.character.addComponentIntance         /** 给物体添加刚体属性*/         this.rig ...

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

89. 动画不显示 [ 87%]

...             {                 m_Role.pos((Laya.stage.width - 27)/2,(Laya.stage.height - 75)/2);             }             else{                 m_Role.pos((Laya.stage.width - 14)/2 + 15,(Laya.stage.height - 75)/2);             }      ...

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

90. laya.display.cmd.DrawCircleCmd_API3.0 [ 86%]

...制圆形 Hierarchy DrawCircleCmd Index Properties fillColor lineColor lineWidth percent radius x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawCircleCmd.ts:27 填充颜色,或者填充绘图的渐变对象。 lineColor lineColor: any Defin...

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