大约有 417 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0035 秒)
Laya_社区(291) Laya2.0_api(75) Laya3.0_文档(23) Laya2.0_文档(19) laya_api(3) Laya3.0_api(2) Laya2.0_示例(2) Laya_示例(2)
...sapp获取到的soundChannel.position总是为0,导致不能继续播放 comp下的button.png第一次点击进入另一个界面,再在这个界面下点击时点击事件不生效? 问题状态 最新活动: 2018-09-22 10:19 浏览: 3678 关注: 7 人 151*****601 • 2018-09-19 11:05 是啊...
来源: Laya_社区 发布时间: 20180917
...样的图片在panel中显示不出来 var t = Laya.loader.getRes("comp/image.png"); var ape1 = new Laya.Sprite(); ape1.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape1); //面板 var panel = new laya.ui.Panel(); panel.width = 500; panel.height ...
来源: Laya_社区 发布时间: 20170401
...g", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":1, "child":[ { "x":15, "type":"Image", "props":{"y":0,"x":0,"width":640,"skin":"comp/img_bg.png","sizeGrid":"25,5,5,5","height":480}, "nodeParent":1, "label":"Image", "isDirectory":false, "isAniNode":true, "hasChild":...
来源: Laya_社区 发布时间: 20190109
... const { x, y, width, height } = this.box Laya.loader.load('comp/image.png').then(v=>{ const texture = this.box.drawToTexture(width, height, x, y) as Laya.Texture this.snapshot.texture = texture }); } 2024-06-05 0 0 分享 微...
来源: Laya_社区 发布时间: 20240425
...EEN_HORIZONTAL; loadres(); function loadres(){ var res=[ {'url':'res/atlas/comp.json'} ] Laya.loader.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })(); 附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20171123
...<Graphic className="laya.editorUI.GraphicContainer" defaultValue="skin='comp/sound.png'" skinLabel="url" icon="Box" groups="公用,常用,宽高及位置,旋转及缩放" drag="3"> <prop name="x" tips="X轴坐标" type="number" default="" group="宽高及位置" /> <prop name="y" tips...
来源: Laya_社区 发布时间: 20180619
...载问题 layaair 3.2 现有图片资源img1,img2(官方提供的atlas/comp/button),skin为img1的预制体按钮B1,场景中skin为img2的按钮B2当场景中已有一个skin为Img1的预制体按钮B1时,通过代码修改B2的Skin为Img1时,会随机出现以下两种情况: 1、成...
来源: Laya_社区 发布时间: 20241226
...a.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayShow); } delayShow() { let canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); let str = can...
来源: Laya_社区 发布时间: 20230419
...这张图片。 但是我换个默认的图集Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.createView)); 却能拿到图集中的图片。是我打包图集的问题吗?这两个图集的.atlas文件都有在res下面啊。 2018-03-26 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20180326
...igLoaded=function(){ Laya.init(600,400); Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this.isOpen=true; var testView=n...
来源: Laya_社区 发布时间: 20190517