大约有 1,363 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1071) Laya3.0_api(81) Laya2.0_api(57) laya_api(53) Laya2.0_文档(50) Laya3.0_文档(38) Laya2.0_示例(7) Laya_示例(6)
...享 微博 QZONE 微信 whzooo - 王掌柜 赞同来自: maskimg=new Sprite(); //addChild(maskimg); photoimg=new Sprite(); Laya.stage.addChild(photoimg); photoimg.mask=maskimg; photoimg.loadImage(imgn,0,0,500,500); Laya.timer.once(1000, this, function():void...
来源: Laya_社区 发布时间: 20160923
...以,你参考下这个方法:https://ask.layabox.com/question/1261 var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,100,100,"#ff9900"); var hitarea:HitArea = new HitArea(); var graphics:Graphics = new Graphics(); graphics.drawRect(100,100,100,100,"#ff9900"); hitarea.hit = graph...
来源: Laya_社区 发布时间: 20170701
...取有效像素问题 更新: 在 现在有没有办法把一个display.sprite转存成图片 无意间找到了 答案 getimagedata无法直接使用 1 需要先 c= Laya.stage.drawToCanvas(720,1280, 0,0) 2 然后 调用 t = new Trxture(c); t.getPixels(0,0, 720,1280) 希望官方对这种比较...
来源: Laya_社区 发布时间: 20171201
关于纹理的显示问题 var sprite:Sprite=new Sprite(); sprite.pos(0, 0); var texture:Texture=new Texture(Browser.window.sharedCanvas); if (texture) { // texture.bitmap.alwaysChange=true; //小程序使用,非常费,这个参数可以根据自己的需求适当调整,如果内容不...
来源: Laya_社区 发布时间: 20180725
...二次调用报错 使用Laya.loader.create 预加载,第一次用Laya.Sprite3D.load("xxx.lh").getChildAt(0) 可以创建,第二次再调用Laya.Sprite3D.load("xxx.lh").getChildAt(0) 创建就返回undefined了,help~ 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180307
为什么显示不了 var sp = new Laya.Sprite(); sp.graphics.drawRect(this.mouse_x, this.mouse_y, 10, 10, "#ff0000"); //var htmlC:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0).getCanvas().toDataURL(); var htmlCanvas:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0); var texture:Laya.Texture = new La...
来源: Laya_社区 发布时间: 20180412
...显示。 > ## 一、遮罩API介绍 遮罩属性位于[laya.display.Sprite](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Sprite) API内(),该属性的说明如图1所示: (图1) ## 二、...
来源: Laya2.0_文档 发布时间: 20210714
小游戏导入手机后Sprite.Mask没有正常显示 在电脑上,微信开发工具里好好的,导入手机里就不行了- - Laya.loader.load(url, Handler.create(this, function () { var t = Laya.loader.getRes(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChi...
来源: Laya_社区 发布时间: 20180710
....Loader.getRes("res/my_res/guns_test.lh"); let a :Laya.Sprite3D = new Laya.Sprite3D(); a.addChild(guns_test.getChildAt(0).clone()); a.transform.translate(new Laya.Vector3(0,1.38,-60))//transform.localPositionX-=2; a.transform.sc...
来源: Laya_社区 发布时间: 20200107
...ild(Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")) as Sprite3D; //克隆sprite3d layaMonkey_clone1 = Sprite3D.instantiate(layaMonkey, scene, false, new Vector3(0.6, 0, 0)); //克隆sprite3d layaMonkey_clone2 = scene.addChild(Sprite3D.instantiate(layaMonkey, null, false, new Vect...
来源: Laya_社区 发布时间: 20181017