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

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

261. UI-Clip [ 86%]

...ew 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.stage.width - count...

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

262. HTMLDivElement下划线换行时,下划线颜色错误 [ 86%]

...ic.drawLine(startWord.x,lineY,lastWords.x+lastWords.width,lineY,this.color,1); var hitRec=HTMLHitRect.create(); hitRec.rec.setTo(startWord.x,lastWords.y,lastWords.x+lastWords.width-startWord.x,lastWords.height); hitRec.href=this.href; recList.push(hitRec); }graphic.drawLine()这里会用到this.colo...

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

263. layair 两点之间的距离api在哪里 [ 86%]

layair 两点之间的距离api在哪里 2018-08-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 阿耀 赞同来自: 陌离 纯数学问题,可以自己封装,laya并没有这样的api /** * * @param {坐...

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

264. 分享,扩展Laya.Text组件实现简单的富文本 [ 86%]

...展Laya.Text组件实现支持换色、加粗、下划线的文本类型 2018-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 6 个回复 he853066732 赞同来自: 176*****233 主要思路就是根据文本里面的关...

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

265. laya.display.Sprite [ 86%]

...Public Properties PropertyDefined By  alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite  autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内...

来源: laya_api 发布时间: 20170929

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

... console.log(sprite.width,sprite.height));      } 附件 : --> ZG.zip 2016-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自:      spine动画实际上就相当于是一个sprite...

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

267. UI-Clip [ 86%]

...ew 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.autoPlay = true; th...

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

268. drawPath的绘制问题 [ 86%]

...0,lineTo,32,448,moveTo,64,0,lineTo,64,448,moveTo,96,0,lineTo,96,448,moveTo,128,0,lineTo,128,448,moveTo,160,0,lineTo,160,448,moveTo,192,0,lineTo,192,448,moveTo,224,0,lineTo,224,448,moveTo,256,0,lineTo,256,448,moveTo,288,0,lineTo,288,448,moveTo,320,0,lineTo,320,448,moveTo,352,0,lineTo,352,448,moveTo,3...

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

269. 论坛的简单跑酷地板间距疑问 [ 86%]

...; this.maxRight不成立,应当是不会产生新地板,谢谢指导 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 这个建议你去私信问一下写这个的 我没看过 解...

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

270. shader 问题[关闭] [ 86%]

...r;     void main(){       vec4 pos =mmat*vec4(position.x,position.y,0,1);       gl_Position = vec4((pos.x/size.x-0.5)*2.0, (0.5-pos.y/size.y)*2.0, pos.z, 1.0);       v_color = color;v_texcoord = texcoord;}`class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8...

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