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

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

261. laya.html.dom.HTMLDivElement [ 55%]

...大小 font-weight:bold:none; 字体是否是粗体,功能同bold color:#ff0000; 字体颜色 stroke:2px; 字体描边宽度 strokeColor:#ff0000; 字体描边颜色 padding:10px 10px 20px 20px; 边缘的距离 vertical-align:top|bottom|middle; 垂直对齐方式 align:left|right|center; 水平对...

来源: Laya2.0_api 发布时间: 20190513

262. 关于适配有点疑惑 [ 55%]

..."fixedwidth"; Laya.stage.scaleMode = "fixedheight"; Laya.stage.bgColor = "#ff0000"; Laya.stage.alignH = "center"; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; createCantralRect(); })(); function createCantralRect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.sta...

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

263. graphics 问题 [ 55%]

...00,100); sp.graphics.transform(matrix); sp.graphics.drawRect(0,0,200,100,"#FF0000"); sp.graphics.restore(); Laya.stage.addChild(sp);我测试没有问题,可以把你详细的代码发下,我们看下! 2017-06-09 0 0 分享 微博 QZONE 微信 raytrace 赞同来自: (function() { var Sprite = ...

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

264. scrollrect的bug? [ 55%]

...1:20 var containr = new Sprite(); containr.graphics.drawRect(0,0,200,200,'#ff0000') containr.size(200,200); containr.pivot(100,100); containr.x = 200 containr.y = 200 senceLayer.addChild(containr); var rect = new Rectangle(0,0,200,200); containr.scrollRect = rect; var itemContainr = new Sprite(); it...

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

265. 新人求助!FD为什么会出现这个问题 [ 55%]

...ild.exe "D:\LayaWork\LayaAir-workspace\MyGame\LayaSample.as3proj" -ipc 5842ff15-6fb5-4352-b4de-e47dce90ee32 -version "4.6.0; 3.1" -compiler "D:\flex-SDK" -library "D:\LayaWork\FlashDevelop - 5.2\Library" Building LayaSample mxmlc -load-config+=obj\LayaSampleConfig.xml -debug=true -incremental=true -...

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

266. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count [ 54%]

...ear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000"); count++; } } 2018-11-13 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

267. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count [ 54%]

...ear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000"); count++; } } 2018-11-13 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

268. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 54%]

....graphics.drawPie(216, 216, 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); //画进度 let point: { x: number, y: number, hudu: number } = this.cal(216, 216, 205, Math.abs(Math.floor(percent * 360) ) - 90); //现在是顺时针,如果逆时针旋转 Math.abs(Math.floor(percent * 360) -36...

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

269. import自己写的类,new出来后为什么一片漆黑 [ 54%]

...aya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } }   然后在我的主文件中import,并new出来。代码如下:import BaseNPC = npc.BaseNPC; var npcc:BaseNPC = new BaseNPC(); 只要我new它,都没addChild到舞台上,运行出来就是很大一...

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

270. drawCallOptimize与滤镜同时使用时文本显示异常 [ 54%]

...filter1 = new Laya.ColorFilter();         filter1.setColor("#00FF7F");         text1.filters = [filter1];          let text2 = new Laya.Text();         text2.text = "ceshi2";         Laya.stage.addChild(text2);         text2.fontSize = 40...

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