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

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

21. WebGl下 graphics画出东西后 移动sprite 不起效果 [ 90%]

WebGl下 graphics画出东西后 移动sprite 不起效果 开启 webGl 先用graphics 画出任意东西,然后移动这个sprite 不起效果 2017-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 6 个回复 cuixueyi...

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

22. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 90%]

...器组件2.2属性设置2.3线段的渲染纹理2.4对比2D线渲染器和Graphics绘制线段三、在代码中使用2D线渲染器组件2D像素线 一、概述 尽管LayaAir引擎提供了绘制图形(Graphics)API用于绘制线段和折线,然而LayaAir3.3开始,提供了更为高级的2...

来源: Laya3.0_文档 发布时间: 20251010

23. 显示对象的mask缩放为0时遮罩效果不生效 [ 89%]

...testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clear(); tmpMask.graphic...

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

24. 想用Graphics.drawTriangles实现trail特效,但是发现BlendMode.ADD不生效,BlendMode.NORMAL倒是正常的。 [ 89%]

想用Graphics.drawTriangles实现trail特效,但是发现BlendMode.ADD不生效,BlendMode.NORMAL倒是正常的。 2018-04-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 你用是can...

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

25. 点击区域问题 [ 89%]

...te = new laya.display.Sprite; con.addChild(sp); sp.x = 250; sp.y = 300; sp.graphics.drawRect(-50,-100,100,100,"#ff0000"); sp.hitArea = new laya.maths.Rectangle(-50,-100,100,100); sp.on(laya.events.Event.CLICK,this,this.spHandler); function spHandler() {     sp.graphics.clear();     var rc:nu...

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

26. 我想任意的在图片上圈一个不规则闭合的曲线,然后得到曲线内的图片。LayaAir应该怎么实现? [ 89%]

...曲线,然后得到曲线内的图片。 以前在flash里面只需要 .graphics.beginBitmapFill(bmp.bitmapData); .graphics.moveTo( 100, 50 ); .graphics.lineTo( 300, 50 ); .graphics.lineTo( 300, 140 ); .graphics.lineTo( 100, 140 ); .graphics.lineTo( 100, 50 ); graphics.endFill(); moveTo和lineTo...

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

27. 关于fillText问题 [ 87%]

...问题 private label_image:Laya.Sprite=new Laya.Sprite(); this.label_image.graphics.fillText(xxx, xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,简单来说就...

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

28. 求绘制遮罩会引起黑屏的解决办法 [ 86%]

... + 3;   this.vmask = new Laya.Sprite(); this.vmask.pos(15,15); this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressvalue); this.progressvalue.mask = this.vmask;   this.changevalue = function(value) { this.targetvalue = value; target = parseInt(360 * valu...

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

29. 【简单跑酷--JS版】---Lv.3 添加地板 [ 86%]

...ader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); //将当前的坐标向上移动32 方便后面处理人物的位置 this.bg.y = -32; this.addChild(this.bg); } this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); //创建一个帧循环处理函...

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

30. 【简单跑酷--JS版】---Lv.6 终篇 [ 85%]

...prite(); this.bar = new Sprite(); this.bar.x = 15; this.bar.y = 2; this.bg.graphics.drawTexture(texture1, 0, 0, 180, 21); this.bar.graphics.drawTexture(texture2, 0, 0, 155, 12); this.addChild(this.bg); this.addChild(this.bar); } /** * 修改当前状态 */ _proto.changeValue = function(value){ this....

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