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

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

571. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 57%]

...stage.width - this.progressBar.width) / 2; this.progressBar.y = Laya.stage.height / 2; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Handler(this, this.onChange); Laya.stage.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); } private changeValue(...

来源: Laya2.0_文档 发布时间: 20210715

572. WebGL 绘制图形报错 [ 57%]

...raphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。   附件 : --> 2017-02-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

573. 微信小游戏,截屏和开放域不能共存 [ 57%]

...截屏接口使用的是 drawToCanvas(this.basePanel.width, this.basePanel.height, this.basePanel.x, this.basePanel.y).toBase64("image/png", 0.9, function(base64){,另外看到也有其他人遇到这个问题,但是没人解答   附件 : --> 2019-06-24 添加评论 免费帖 --> 分享 微博...

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

574. SCALE_FIXED_WIDTH适配屏幕的问题 [ 57%]

...          Laya.stage.width = 1218;                 Laya.stage.height = 750;                 if (Laya.Browser.onPC) {                     //设置舞台缩放模式                     Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL;                  ...

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

575. Laya2.1.0的BUG!Texture类的getTexturePixels [ 57%]

...的getTexturePixels  var uv=null; if (x !=0 || y !=0 || width !=texw || height !=texh){ uv=uv.concat();我想知道,引擎这段报错代码是什么鬼? Texture类的getTexturePixels 定义:var uv=null; 然后:uv=uv.concat();  ????     附件 : --> 2019-07-05 添加评论 免费帖 --> ...

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

576. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 57%]

...          Laya.stage.width = 1218;                 Laya.stage.height = 750;                 if (Laya.Browser.onPC) {                     //设置舞台缩放模式                     Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL;                  ...

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

577. 原生打包中,drawTriangles接口报错,以及scrollRect没效果 [ 57%]

...现良好,但打包成原生APP(安卓)时,scrollRect的x,y,width,height属性设置了有没产生任何效果。 2019-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 R. 赞同来自: 引擎库版本...

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

578. wx.canvasToTempFilePath在TS下如何使用啊? [ 57%]

...TS下如何使用啊? wx.canvasToTempFilePath({ x: 0, y: 0, width: 100, height: 100, destWidth: 100, destHeight: 100, canvasId: 'myCanvas', success: function (res) { wxd.shareUrl = res.tempFilePath wxd.ShareAppMessage() console.log(res.tempFilePath) } }) 一直报错[ts] The 'this' context of type...

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

579. android下mask效果与layaair不一致 [ 57%]

...表现效果就不一致了 skillMask.graphics.drawRect(0, 0, t.width, t.height, "#ffffff"); skillMask.x = 0; skillMask.y = 0; skill.mask = skillMask;   附件 : --> 2017-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

580. 如何实现渐变填充对象呀? [ 57%]

...Rect(0, 0, 500, 350, "#ffffff") drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 参数fillColor:* — 填充颜色,或者填充绘图的渐变对象 我找不到关于这个渐变对象的文档,例子或者教程 2018-09-04 ...

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