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

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

91. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 61%]

...hics.drawLine( 0, this._fly_site.h, this._box._area.w, this._fly_site.h, "#ff0000", 1 );  // 当更新房间时 if( this._doll_area.w != doll_area.w || this._doll_area.h != doll_area.h ) {  this._doll_area.w = doll_area.w; this._doll_area.h = doll_area.h; }  // 设置容器的宽高 this.width = ...

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

92. 小游戏导入手机后Sprite.Mask没有正常显示 [ 61%]

...ild(sp)  var cMask = new Sprite() cMask.graphics.drawCircle(40, 40, 37, "#ff0000") sp.mask = cMask //sp.addChild(cMask) //sp.removeChild(cMask) sp.pos(7,14) console.log(cMask.x, cMask.y) }, null, "image"))   一个圆形的遮罩显示微信头像.. 2018-07-10 添加评论 免费帖 --> 分享 微...

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

93. [LayaAir3]3.3版本绘制矢量图有BUG [ 61%]

...     sp.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, '0xff0000');         Laya.stage.addChild(sp); 附件 : --> 2025-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 LayaAir小牛 赞同...

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

94. 自适应问题 [ 61%]

...ge.alignH = Stage.ALIGN_CENTER;              Laya.stage.bgColor = "#ff0000";       Laya.stage.scaleMode = "fixedwidth";   Laya.loader.load("http://localhost/layabox/layabox/layabox/res/bg.png'", Handler.create(this, function () {         var t = Laya.loader.getRes(skin);         v...

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

95. laya.display.Graphics_API3.0 [ 60%]

...rush: any = null (可选)刷子定义,支持以下设置{fillStyle:"#FF0000"}。 Default value pen: any = null (可选)画笔定义,支持以下设置{strokeStyle,lineWidth,lineJoin:"bevel|round|miter",lineCap:"butt|round|square",miterLimit}。 Returns DrawPathCmd drawPie drawPie(x: numb...

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

96. fatal error: 'string' file not found [ 60%]

... 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #a31515; background-color: #ffffff} span.s1 {color: #0000ff} 附件 : --> 2019-07-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 鹏鴥的fly 赞同来自: 你好,...

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

97. Native 如何使用ttf? [ 60%]

...nav=zh-ts-7-2-9 var xhr = new XMLHttpRequest(); xhr.responseType = 'arraybuffer'; xhr.open('GET', "res/font/Arial.ttf", true); xhr.onload = function () { Laya.Browser.window.conch.setFontFaceFromBuffer("Arial", xhr.response); setInterval(onDrawFrame, 15); }; xhr.onerror = function (e) { alert('>&...

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

98. HtmlDivElement 描边和下划线不能同时使用 [ 60%]

...测没问题,   代码:<div style='width:300px;height:100px;color:#ff0000;font-size:25px;font-family:SimSun;vertical-align:bottom;line-height:20px;'> <p><span style='font-weight:bold;stroke:3px; font:24px Arial' color='red' href='https://ask.layabox.com/'> LayaBox</span>...

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

99. layaAirIDE中如何使用wx等微信基础对象,ide版本1.7.19.1beta [ 60%]

...t: 10, top: 76, width: 200, height: 40, lineHeight: 40, backgroundColor: '#ff0000', color: '#ffffff', textAlign: 'center', fontSize: 16, borderRadius: 4 } }) 这种利用微信接口创建的按钮对象赋值给button 的怎么弄 __JS__('wx').createUserInfoButton({}) 可以这样写 前面的butto...

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

100. laya.display.Sprite.graphics对象的旋转问题 [ 60%]

...=new Sprite(); Laya.stage.addChild(sp); sp.graphics.drawLine(0,0,200,200,'#FF00000'); sp.pivot(0,0); Laya.timer.frameLoop(1,this,onTimer,[sp]); } private function onTimer(sp:Sprite):void { sp.rotation+=1; } 2017-04-24 0 0 分享 微博 QZONE 微信 wqt542434707 赞同来自: 谢谢~ 2017-04-24 0 0 ...

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