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

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

491. skin加载url资源不会刷新 [ 51%]

...        var ape: Sprite = new Sprite();             ape.graphics.drawTexture(t, 0, 0);             Laya.stage.addChild(ape);             ape.pos(0, 0);         }));     业务: 图片服务器会修改上传新的图片,图片的文件名不变 流程: 我清理...

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

492. 求问sprite放大后,graphics绘制的图像位置偏移 [ 51%]

...exture: Laya.Texture = Laya.loader.getRes(this.skin_img1); sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); sprite.size(texture.width, texture.height); let x: number = 300; let y: number = 100; let scaleRatio: number = 1.3; sprite.pos(x, y); // sprite.graphics.drawCircle(te...

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

493. 分享:LayaAir下如何获取图集下的小图资源? [ 51%]

...loader.getRes("atlas_res/01.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture,200,100); Laya.stage.addChild(sp); } } } 小图路径请参考.json文件的参数 ,直接prefix的值加上小图名称即可获取到   2016-07-07 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

494. 局部坐标转全局坐标结果与预期相差甚远 [ 51%]

...请问在2.0版本的js中,如何获取mouse_move的鼠标坐标 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 按钮坐标问题导致无法点击 相对屏幕坐标 问题状态 最新活动: 2018-12-20 10:43 浏览: 1429 关注: 2 人 LT • 2018-12-...

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

495. 设置cacheAs = bitmap时, drawCanvas 的一个bug [ 51%]

...(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getTexture(), x, y, width, height, 0, 0); */ //应用并清空canvas中的指令。如果内容需要重画,RenderSprite会给他重新加入submit if (src._submits._length > 0) { submit =...

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

496. TypeError: Cannot read property '_byteLength' of null [ 51%]

...Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.MovieClip is not a constr...

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

497. LayaAir2.0里用Laya.Scene.open(url)打开场景,如何往场景内传递参数 [ 51%]

...景问题出现在哪呢?? 3d场景单材质单模型CurMem300多 2.0 drawTexture color参数无效 mac 用layaair2.0 ide 的编辑模式下,cpu爆满 怎样获取浏览器地址传过来的GET参数 问题状态 最新活动: 2020-11-05 12:32 浏览: 1648 关注: 5 人 嘿哈 • 2019-05-21 2...

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

498. 微信小游戏开放数据域按钮点击位置偏移 [ 51%]

...Change = true;//小游戏使用,非常费,每帧刷新 layout.graphics.drawTexture(canvas); } 2018-08-10 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 开放域的位置偏移,是因为你主域绘制的区域跟开放数据域绘制的位置不对称,比如开放数据域绘制在0,0...

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

499. 问一下这个问题要怎么改啊? [ 50%]

...g)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } }   Main.as package { import laya.display.*; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import addPic; pu...

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

500. 我想任意的在图片上圈一个不规则闭合的曲线,然后得到曲线内的图片。LayaAir应该怎么实现? [ 50%]

...合的曲线,就能够将这部分绘制出来 使用LayaAir的.graphics.drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1) 获得只能是一个矩形,请问Laya应该如何实现同样的功能? 2017-04-14 添加评论...

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