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

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

51. 关于Laya.loader.load和getRes的问题 [ 82%]

... 以下是原文的代码,也是我疑问的地方:// 方法2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTe...

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

52. Sprite-屏幕截图 [ 81%]

...yTexture = Laya.loader.getRes("res/apes/monkey3.png"); this.aimSp.graphics.drawTexture(this.monkeyTexture,0,0,this.monkeyTexture.width,this.monkeyTexture.height); this.drawImage = new Image(); this.drawImage.size(Browser.clientWidth/2,Browser.clientHeight/2); Laya.stage.addChild(this.drawImage); thi...

来源: Laya2.0_示例 发布时间: 20240930

53. laya.display.Graphics [ 81%]

...lineColor:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics  drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1):Array 绘制纹理。 Graphics  drawTextures(tex:Texture, pos:Array):void 批量绘制同样纹理...

来源: laya_api 发布时间: 20170929

54. drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 [ 81%]

...使用Laya.List绘制了排行榜,但是触摸没有滚动响应 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 怎么检测点是否在 graphics所绘制的区域内 如何清除graphics绘制的矢量图 webgl 绘制graphics出报错 如何获取Sprite...

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

55. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 81%]

...l].y, data.angel[angelLel].w , data.angel[angelLel].h); this.ball.graphics.drawTexture(tBall, 0,0,548,305); this.tower.graphics.drawTexture(tTower, 0, 0, data.tower[towerLel].w , data.tower[towerLel].h); this.aeroboat.graphics.drawTexture(tAeroboat,0,0, data.aeroboat.w, data.aeroboat.h); this.mounta...

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

56. drawTexture能否支持自定义滤镜,或者发光、颜色滤镜 [ 81%]

drawTexture能否支持自定义滤镜,或者发光、颜色滤镜 目前,laya.display.Sprite.graphics的函数drawTexture函数,不支持滤镜,能否开发支持?如果可以支持自定义滤镜就更好,当然如果没办法的话,那可以支持常用滤镜,发光滤镜,颜...

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

57. 代码创建精灵监听不到事件? [ 81%]

... new Laya.Sprite(); var texture = Laya.loader.getRes(boxstr); box.graphics.drawTexture(texture); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]);   var _proto = StorageUILayer.prototype;   _proto.onclick = function(params){ console.log...

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

58. 官方的Animation播放的时候,内部是使用的drawTexture 这个api吗 [ 80%]

官方的Animation播放的时候,内部是使用的drawTexture 这个api吗 官方的Animation播放的时候,内部是使用的drawTexture 这个api动态切换图片吗 var sp2:Sprite = new Sprite(); sp2.x = 300; sp2.graphics.drawTexture(_texture,0,0,100,100); 2017-09-27 添加评论 免费...

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

59. Sprite-切换纹理 [ 80%]

...aphics.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 Stage = Laya.Stage; import Texture = Laya.Texture; import Handler = Laya.Hand...

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

60. 在Canvas模式下 drawTexture出错 [ 79%]

在Canvas模式下 drawTexture出错 WebGL模式下正常 Canvas模式下 在短时间内连续调用drawTexture和destroy会报错 Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageEleme...

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