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

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

311. DrawPie例子中无法显示遮罩区域 [ 68%]

...his.cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 this.cMask.graphics.drawPie(80,80,50, 0, 360,"#ff0000"); this.cMask.pivot(80,80); //Laya.stage.addChild(this.cMask); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onMouseMove); ape.mask = this.cMask; } function onMouseMove(){ this.cMask.po...

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

312. 使用drawToCanvas截图多次之后,再也无法再本次程序中截图显示。没有任何报错 [ 68%]

...e进行draw绘制并显示到舞台 this._photo.name="testtt"; this._photo.graphics.drawTexture(this._tex,0,0,this.gridBox.width,this.gridBox.height); } 附件 : --> demo.zip 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

313. 使用graphsics.drawTexture画出来的图片与使用button创建同样宽高图形竟然不重合?? [ 68%]

...按钮,和使用 this.sprite_show = new Laya.Sprite(); this.sprite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画出来的两个对象,sprite_show的图形竟然被缩小了一点点。。。都是同样的宽高 2017-11-02 添加评论 免费帖 -...

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

314. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 68%]

...re = Laya.loader.getRes(url); var ape:Laya.Sprite = new Laya.Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200,0); } ``` 第三种我们直接创建一个纹理来 ```typescript private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffer; //....

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

315. 颜色滤镜 差值变化 [ 68%]

...颜色显示不正确 laya如何实现图片变暗滤镜 如何给Sprite的graphics绘制的线条添加发光滤镜? Tween.to时添加滤镜 HTMLDivElement使用滤镜时显示异常 某些机型drawToCanv绘图颜色变深 问题状态 最新活动: 2018-10-06 15:18 浏览: 1297 关注: 4 人

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

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

... constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.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, _fis...

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

317. 引擎 TiledMap 居然不支持图块翻转 [ 68%]

...ection === 0) {                                 gridSprite.graphics.drawImage(tTileTexSet.texture, tX + tTileTexSet.offX, tY + tTileTexSet.offY);                                 // }                                 // else {                   ...

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

318. WebGL模式下用遮罩实现圆形头像会有警告出现 [ 68%]

...a.Image(); this.img.loadImage("url"); const mask = new Laya.Sprite(); mask.graphics.drawCircle(75, 75, 75, "#ffffff"); this.img.mask = mask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加评论 免费帖 --> 分享 微博 QZON...

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

319. drawToCanvas无法释放内存 [ 68%]

...exture(sp.drawToCanvas(sp.width,sp.height,0,0))             sp.graphics.clear()             sp.graphics.destroy()             tex.destroy()             tex.disposeBitmap()             tex.bitmap.releaseResource(); } 每次调用都不会刷...

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

320. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 68%]

..._proto.stroke (laya.js:17440) at RenderContext._drawLine (laya.js:4738) at GraphicsGL.__proto._renderAll (laya.js:987) at RenderSprite3D.__proto._graphics (laya.js:5234) at RenderSprite3D.RenderSprite._initRenderFun [as _fun] (laya.js:5466) at Sprite.__proto.render (laya.js:18990) at RenderSprite3D....

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