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

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

31. layaAir真的没办法做涂鸦板? [ 64%]

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

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

32. 画出来鼠标轨迹线 [ 63%]

...度依托于你滑动的速度、并赋予上下限         line.graphics.drawPath(0,0,[["moveTo",last.x,last.y],["lineTo",first.x,first.y]],{}, {strokeStyle: "rgba(12,434,34,"+(1-(Date.now()-first.time)/times)+")",lineCap: "round",lineWidth: speed});         //绘制两个鼠标记...

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

33. 让 CylinderMesh 支持椎体 [ 63%]

...t.STATIC_DRAW*/0x88E4,true); this._indexBuffer=new IndexBuffer3D(/*laya.d3.graphics.IndexBuffer3D.INDEXTYPE_USHORT*/"ushort",this._numberIndices,/*laya.webgl.WebGLContext.STATIC_DRAW*/0x88E4,true); this._vertexBuffer.setData(vertices); this._indexBuffer.setData(indices); this.memorySize=(this._verte...

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

34. 矢量图组件不能取名字的嘛? [ 62%]

...精灵里加上这个,这个实现原理,就是sprite的实例调用了graphics的draw相关的方法实现的。 2018-08-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Nothing 相关问题 LayaAir能做RPG吗?不要问我能不...

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

35. RenderContext代码 调度问题 [ 62%]

RenderContext代码 调度问题 在laya画布上调用Laya.stage.graphics.drawLine画线 发现触发 RenderContext 里面的_drawLine方法  即使在鼠标松开后,还会不停的调用。这是不是正常现象? 附件 : --> 2017-11-27 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

36. Laya 集成Box2d 可以么?着急 [ 62%]

...tage.height;     var ctx = canvas.getContext('2d');     Laya.stage.graphics.clear(false);     var textture = new Laya.Texture(canvas);     textture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新     Laya.stage.graphics.drawTexture(textture);     debug...

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

37. 不断的操作lineTo为什么项目运行会越来越卡? [ 61%]

...同来自:   不断的操作lineTo,譬如你在舞台上不断的使用graphics.lineTo来达到画笔的效果,不断的绘制不断的绘制,你会发现画笔的运行会越来越卡。这是为什么呢?   这是因为,使用layaFlashde宏编译laya_publish_h5命令,将你的项目...

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

38. laya中的截屏在WebGL下为什么无效呢? [ 61%]

...照特效 this._shapeSnapEffect = new egret.Shape; this._shapeSnapEffect.graphics.beginFill( 0xFFFFFF ); this._shapeSnapEffect.graphics.drawRect( 0, 0, L.W_CLIP, L.H_CLIP ); this._shapeSnapEffect.graphics.endFill(); this._shapeSnapEffect.cacheAsBitmap = true; this._shapeSnapEffect.x = this._bmpSnap....

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

39. 分享:DrawToCanvas内存释放问题! [ 60%]

...unction CreateBtn(xx:int,yy:int):Sprite { var btn:Sprite=new Sprite(); btn.graphics.drawRect(0,0,200,50,"#FF0000"); btn.pos(100,400); var text:Text=new Text(); text.text="Draw"; btn.addChild(text); Laya.stage.addChild(btn); btn.size(200,50); return btn; } //点击DrawToCanvas按钮,进行截屏 pr...

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

40. drawTexture 画出来的数据会有以前的数据 [ 59%]

...er.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.graphics.clear(); iconSpr.graphics.clear(); if(htmlCanvas) htmlCanvas.clear(); htmlCanvas = iconSpr.drawToCanvas(iconSpr.width,iconSpr.height,0,0); if(!texture) texture = new Texture(htmlCanvas); else { texture.destroy(true);...

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