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

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

101. graphics.drawlines异常 [ 60%]

... 406, 547, 408, 544, 408, 544];   canvas.graphics.drawLines(0, 0, path, "#ff0000", 10); } })(); 2018-12-30 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 异常指的是什么? 正常运行了没有报错 2019-01-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

102. 运行第一个hello,一直黑屏,没有东西显示出来 如何解决? [ 59%]

.../设置文本内容 txt.text = "Hello"; //设置文本颜色 txt.color = "#FF0000"; //设置文本字体大小,单位是像素 txt.fontSize = 66; //设置字体描边 txt.stroke = 5;//描边为5像素 txt.strokeColor = "#FFFFFF"; //设置为粗体 txt.bold = true; //设置文本的显示起点位...

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

103. 1.7.2版本在FlashDevelop编译flash问题 [ 59%]

...flash可以发布写了两行 Laya.init(800, 600); Laya.stage.bgColor = "#ff0000";    请帮忙看下 附件 : --> 2017-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 看下你的f...

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

104. Sprite对象中的scrollRect如何使用?为什么是undefined [ 59%]

...     h = 770;             bimgBox.graphics.drawRect(0, 0, w, h, "#FF7F50");             var rect = new Rectangle(0,0,200,200);             bimgBox.scrollRect = rect;             bimgBox.optimizeScrollRect = true;    这是我的调用方法,麻烦知道的高手指点...

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

105. 2.0字体比较小的时候,某些字显示不全 [ 59%]

...le() { //初始化引擎 Laya.init(480, 640,WebGL); Laya.stage.bgColor = "#FFFF33"; var txt:Text = new Text(); //给文本的text属性赋值 txt.text = "gggggqqqqqqqyyyyyyyvvvv"; txt.align = "center"; txt.fontSize = 15; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.leading = 5; txt.x = (...

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

106. 关于js继承类class的参数问题 [ 59%]

...始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。      *         label.text = "100000";//设置 label 的文本内容。      *         label.name ...

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

107. laya.ani.GraphicsAni_API3.0 [ 59%]

...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

108. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 59%]

...hics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console....

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

109. Sprite生成的mask对Sprite作用时显示不正确 [ 59%]

...Size = true; mapMask.graphics.drawRect(0,0,miniMap.width,miniMap.height, '#ff0000'); miniMap.mask = mapMask; Laya.stage.addChild(miniMap) 2018-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同...

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

110. 调用创建微信授权按钮时,授权按钮有时候显示有时候不显示 [ 59%]

...eight: 98*0.45,                     backgroundColor: '#ff0000',                     color: '#ffffff',                     textAlign: 'center',                     fontSize: 16,                     bor...

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