大约有 434 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)
Laya_社区(228) Laya2.0_api(64) Laya3.0_api(62) laya_api(56) Laya2.0_文档(16) Laya3.0_文档(5) Laya2.0_示例(2) Laya_示例(1)
...复 //绘制遮罩区,含透明度,可见游戏背景 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
...or: Cannot read property '_glTexture' of undefined _i32b[2]=isloaded?value.bitmap._glTexture.id:0; ^^ TypeError: Cannot read property '_glTexture' of undefined at Sprite.__proto._setTextureEx (http://stand.alone.version/lib ... 906:34) at EventHandler.__proto.runWith (http://stand.alone.version/lib ...
来源: Laya_社区 发布时间: 20190302
...w RenderTarget2D(w, h)); if (!t.bitmap || t._w != w || t._h != h || t._surfaceFormat != surfaceFormat || t._surfaceType != surfaceType || t._depthStencilFormat != depthStencilFormat || t._mipMap != mipMap || t._repeat != repeat || t._minFifter != minFifter ...
来源: Laya_社区 发布时间: 20180505
...符占位。 > 未来的版本,有计划支持空格与换行 #### 2、BitmapFont位图字体类 通常FontClip已经可以满足关卡、特效等单行位图文本的需求。如果有特殊情况,就是想要空格,那也可以通过BitmapFont位图字体类来实现,在LayaAir 2.x IDE里...
来源: Laya2.0_文档 发布时间: 20210715