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

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

301. 【解决】富文本html下划线换行bug [ 85%]

...求。   修改2.0版本 laya.html.js库里的代码__proto.renderSelfToGraphic=function(graphic,gX,gY,recList){ var cssStyle=this.style; var words=this._getWords(); var i=0,len=0; if (words){ len=words.length; var a; if (cssStyle){ var font=cssStyle.font; var color=cssStyle.color; if (cssStyle.str...

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

302. laya.d3.renderobjs.nativeobj.NativeIndexBuffer3D_API3.0 [ 85%]

...canRead(): boolean Inherited from IndexBuffer3D.canRead Defined in laya/d3/graphics/IndexBuffer3D.ts:36 是否可读。 Returns boolean indexCount get indexCount(): number Inherited from IndexBuffer3D.indexCount Defined in laya/d3/graphics/IndexBuffer3D.ts:29 索引个数。 Returns number indexType...

来源: Laya3.0_api 发布时间: 20231115

303. 这种进度条怎么实现? [ 85%]

...his.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE >> 1, this.DEF_SIZE >> 1,-90,this.startY,'#ff0000') this.$circleSprite.blendMode = "destination-out" this.$circleSprite.pos(this.CIRCLE_WIDTH >> 1,thi...

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

304. 关于怎么绘制小格 [ 85%]

...neColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 如何清除graphics绘制的矢量图 使用滤镜、遮罩、或者绘制频率很高的时候回出现黑屏闪烁 webgl 绘制graphics出报错 如何给Sprite的graphics绘制的线条添加发光滤镜? 小游戏开放数据域...

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

305. Sprite-切换纹理 [ 85%]

...var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.clear(); var texture = Laya.loader.getRes(textureUrl); ape.graphics.drawTexture(texture, 0, 0); // 设置交互区域 ape.size(texture.width, texture.height); } })();module laya { import Sprite = Laya.Sprite; import ...

来源: Laya_示例 发布时间: 20251209

306. laya.d3.graphics.VertexPositionNormalColorTexture0Texture1Tangent [ 84%]

...ionNormalColorTexture0Texture1TangentProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTexture0Texture1TangentInheritanceVertexPositionNormalColorTexture0Texture1Tangent ObjectImplements IVertex VertexPositionNormalColorTextureTangent 类用于创建位置、...

来源: laya_api 发布时间: 20170929

307. new Laya.Sprite();绘制图形以后,怎么删除释放资源? [ 84%]

...除释放资源? var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawPie(0,0,50,0,160,"#122D3E");   绘制完成以后,我怎么从舞台删除绘制的图形和释放Sprite相关资源? clear和removeChild???具体怎么操作?   2017-11-19 添加评论 免费帖 --...

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

308. 小图集内存较大,且不能清理掉 [ 84%]

...图集能清除掉么? private function onLoad(tex:Texture):void { var g:Graphics = new Graphics(); g.drawTexture(tex, 0, 0); _s.graphics = g;        Laya.timer.once(2000, this, onClear); } private function onClear():void { _s.graphics.clear(); _s.destroy(true); _s.removeSelf(); _s...

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

309. layaAir真的没办法做涂鸦板? [ 84%]

layaAir真的没办法做涂鸦板? 我用sp.graphics.drawLines方法做了个鼠标画线,确实是连续画的时间长了,就会很卡,在平板上尤其明显,画两三条线之后就不行了,没办法解决吗?用JS原生的画线方法怎么能加载我的内容上呢,我是...

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

310. laya.d3.graphics.VertexPositionNormalTexture0Texture1Tangent [ 84%]

...PositionNormalTexture0Texture1TangentProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalTexture0Texture1TangentInheritanceVertexPositionNormalTexture0Texture1Tangent ObjectImplements IVertex VertexPositionNormalTextureTangent 类用于创建位置、法线、纹理...

来源: laya_api 发布时间: 20170929