大约有 440 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0105 秒)
Laya_社区(234) Laya2.0_api(64) Laya3.0_api(62) laya_api(56) Laya2.0_文档(16) Laya3.0_文档(5) Laya2.0_示例(2) Laya_示例(1)
... 但播放完一遍后就会消失 同时控制台不断地输出cache bitmap size larger than 2048,cache ignored,直至卡死 2018-06-14 0 0 分享 微博 QZONE 微信 136*****187 赞同来自: 另外变色滤镜ColorFilter也是完全没效果的 不知道是不是我的设置bounds...
来源: Laya_社区 发布时间: 20180614
...代码如下: var myTexture = new Laya.Texture(sharedCanvas) myTexture.bitmap.alwaysChange = true; this.graphics.drawTexture(myTexture, x, y, width, height) 目前遇到的问题: 主域里面的texture获取在获取sharedCanvas里的图案的时候,没有将texture自身的内容清空,...
来源: Laya_社区 发布时间: 20180419
...ataViewer类_onLoop方法,在后面加一个参数true,即this.texture.bitmap.loadImageSource(Laya.Browser.window.sharedCanvas, true);就可以了,这样开放数据域用半透明的图片就不会有锯齿了 vvv123 • 2020-01-07 15:55 这个东西我之前也找过论坛,官方的人居...
来源: Laya_社区 发布时间: 20191025
...复 //绘制遮罩区,含透明度,可见游戏背景 mask.cacheAs = "bitmap"; var maskArea:Sprite = new Sprite(); maskArea.alpha = 0; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.setName("maskArea") mask.addChild(maskArea); //绘制一个圆形...
来源: Laya_社区 发布时间: 20221010
...ample.spriteLeaderboard)) {//从舞台移除 LayaSample.textureLeaderboard.bitmap.alwaysChange = false;//将消耗性能的这句话关闭 LayaSample.spriteLeaderboard.removeSelf();//移除精灵 } LayaSample.textureLeaderboard.destroy(false);//销毁纹理 LayaSample.spriteLeaderboard.destroy(true)...
来源: Laya_社区 发布时间: 20180906
...ya.resourceClasspublic class HTMLCanvasInheritanceHTMLCanvas laya.resource.Bitmap HTMLCanvas 是 Html Canvas 的代理类,封装了 Canvas 的属性和方法。 Public Properties PropertyDefined By context : Context[read-only] Canvas 渲染上下文。 HTMLCanvas _source : *HTMLCanvas so...
来源: Laya2.0_api 发布时间: 20190513
... QZONE 微信 irreplaceable 赞同来自: 为什么要把cacheAs设置为bitmap才可以呢,不是很理解 2018-08-13 0 0 分享 微博 QZONE 微信 LjDarren 赞同来自: 感谢分享······但是现在有个疑问,在一定的情况下,如果抠图区域进行移动,在一定的边...
来源: Laya_社区 发布时间: 20171221
...46 关注: 5 人 helloworldlv • 2018-03-05 20:37 if (Render.isConchApp){ bitmap.source.enableMerageInAtlas(true/*false*/); } helloworldlv • 2018-03-05 20:37 试试这个 tyevlag • 2018-02-28 22:52 呃,就是说指定某些纹理,条件不只是图片大小 tyevlag • 2018-02-28 20:04 请...
来源: Laya_社区 发布时间: 20180228
...Bounds方法获取。设置为true,对性能有一定影响。 Sprite bitmap : AutoBitmap[read-only] AutoBitmap 位图实例。 Clip blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距...
来源: laya_api 发布时间: 20170929
...ss) var Sprite = Laya.Sprite; this.box = new Sprite(); this.box.cacheAs = "bitmap"; this.box.pos(0,0); this.say.addChild(this.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); thi...
来源: Laya_社区 发布时间: 20170807