大约有 1,726 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1387) Laya3.0_api(107) laya_api(68) Laya2.0_api(68) Laya2.0_文档(65) Laya3.0_文档(18) Laya_示例(8) Laya2.0_示例(5)
...空白了。。。 cuixueying • 2017-05-10 10:34 1、因为image引用的texture是同一个,所以你要确保你的texture引擎没有其他显示对象引用后,再去掉destroy,如果其他显示对象对其依然有引用,你可以先将image从现实列表移除,removeChild并让im...
来源: Laya_社区 发布时间: 20170509
...法调用顺序错了 正确顺序: var img:Image = new Image(); var t:Texture = Laya.loader.getRes(_resUrl); img.graphics.save();//必须要调用 否则报错 img.graphics.clipRect(100,100,200,200); img.graphics.drawTexture(t); img.graphics.restore(); this.addChild(img); 2019-01-11 0 0 ...
来源: Laya_社区 发布时间: 20190111
...构建app,native:2.0.3),三,创建一个sprite,设置默认的texture,修改texture后,新建一个sprite,获取全部属性,包括资源路径,但是显示的始终是默认的texture(可提供deme,是项目中遇到的,可以私发) Laya_Aaron • 2019-04-02 21:08 新...
来源: Laya_社区 发布时间: 20190402
...role:any = Matter.Bodies.circle(x,y,50,roleOptions);//这里不需要定义texture或者layaSprite var roleImg = new Laya.Sprite(); roleImg.loadImage("../xx.png"x,y,width,height);//直接定义roleImg的大小及相对位置 roleImg.zOrder = 2;//还能定义层级,这个层级是与laya直接相...
来源: Laya_社区 发布时间: 20180827
...监听解析完成事件,直接调用骨骼动画解析方法parseData(texture:Texture, skeletonData:ArrayBuffer, playbackRate:int = 30):void,之后,直接创建龙骨对象mArmature = mFactory.buildArmature();这样就可以正常运行。。。。。。。。。。。。想问问,那我还...
来源: Laya_社区 发布时间: 20180322
...al: SkyPanoramicMaterial = new SkyPanoramicMaterial(); Texture2D.load("res/jfb.jpg", Handler.create(null, function (tex: Texture2D) { material.panoramicTexture = tex; skymat.material = material; })); 2020-03...
来源: Laya_社区 发布时间: 20200319
...边将sharedCanvas的内容绘制到主屏幕,伪代码如下: var myTexture = new Laya.Texture(sharedCanvas) myTexture.bitmap.alwaysChange = true; this.graphics.drawTexture(myTexture, x, y, width, height) 目前遇到的问题: 主域里面的texture获取在获取sharedCanvas里的图案...
来源: Laya_社区 发布时间: 20180419
... untiy导出的时候资源能否不用这样的绝对路径,"~Assets\/texture\/22dilie2.png" 加个开关配置也好。 2017-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 下个...
来源: Laya_社区 发布时间: 20170330
...= sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.s...
来源: Laya_社区 发布时间: 20180103
...变加载图片的大小是无效的,不过你可以通过先clear在drawTexture的方法设置下,代码如下: var sprite = new laya.display.Sprite(); sprite.loadImage("comp/bg.png",0,0,0,0,Handler.create(this,function(texture:laya.resource.Texture){ sprite.graphics.clear(); ...
来源: Laya_社区 发布时间: 20160711