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

大约有 434 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

201. ios15遮罩引起的黑屏在1.x的版本上如何解决 [ 52%]

...复 //绘制遮罩区,含透明度,可见游戏背景 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

202. 微信小游戏,开放域(排行榜)关闭后再开始游戏与直接开始游戏相比较,掉帧严重! [ 52%]

...ample.spriteLeaderboard)) {//从舞台移除 LayaSample.textureLeaderboard.bitmap.alwaysChange = false;//将消耗性能的这句话关闭 LayaSample.spriteLeaderboard.removeSelf();//移除精灵 } LayaSample.textureLeaderboard.destroy(false);//销毁纹理 LayaSample.spriteLeaderboard.destroy(true)...

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

203. laya.resource.HTMLCanvas [ 52%]

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

204. 【分享】 混合 模式destination-out做的 区域透明 效果 俗称抠图 的使用 [ 52%]

... QZONE 微信 irreplaceable 赞同来自: 为什么要把cacheAs设置为bitmap才可以呢,不是很理解 2018-08-13 0 0 分享 微博 QZONE 微信 LjDarren 赞同来自: 感谢分享······但是现在有个疑问,在一定的情况下,如果抠图区域进行移动,在一定的边...

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

205. 请问一下native下的的Render.isConchWebGL [ 52%]

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

206. laya.ui.Clip [ 52%]

...Bounds方法获取。设置为true,对性能有一定影响。 Sprite  bitmap : AutoBitmap[read-only] AutoBitmap 位图实例。 Clip blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距...

来源: laya_api 发布时间: 20170929

207. 关于环形进度条,进度不能重置问题 [ 51%]

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

208. LayaAPP打包后laya.webgl.j错误,浏览器测试没问题 [ 51%]

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

209. RenderTarget2D的create方法 [ 51%]

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

210. 一篇了解所有的LayaAir文本组件(TypeScript-LayaAir基础篇(TS)-文本) [ 51%]

...符占位。 > 未来的版本,有计划支持空格与换行 #### 2、BitmapFont位图字体类 通常FontClip已经可以满足关卡、特效等单行位图文本的需求。如果有特殊情况,就是想要空格,那也可以通过BitmapFont位图字体类来实现,在LayaAir 2.x IDE里...

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