[]为什么pannel里显示两张同样的图片显示不出来,只能显示一张
class LevelScrollUI extends ui.LevelUI {
private panel:Laya.Panel;
constructor() {
super();
this.panel = new Laya.Panel();
this.panel.size(720, 1136);
this.panel.vScrollBarSkin = "comp/vscroll.png";
Laya.stage.addChild(this.panel);
var img:Laya.Image = new Laya.Image();
img.skin = "res/GameBG2.jpg"
this.panel.addChild(img)
var img1:Laya.Image = new Laya.Image();
img1.y = 1136;
img1.skin = "res/GameBG2.jpg";
this.panel.addChild(img1)
}
}
两张同样的图片在pannel里只能显示一张,如果改成两个不同的图片就可以都显示,为什么?
private panel:Laya.Panel;
constructor() {
super();
this.panel = new Laya.Panel();
this.panel.size(720, 1136);
this.panel.vScrollBarSkin = "comp/vscroll.png";
Laya.stage.addChild(this.panel);
var img:Laya.Image = new Laya.Image();
img.skin = "res/GameBG2.jpg"
this.panel.addChild(img)
var img1:Laya.Image = new Laya.Image();
img1.y = 1136;
img1.skin = "res/GameBG2.jpg";
this.panel.addChild(img1)
}
}
两张同样的图片在pannel里只能显示一张,如果改成两个不同的图片就可以都显示,为什么?
没有找到相关结果
已邀请:
要回复问题请先登录
6 个回复
Aar0n
赞同来自:
Miller
赞同来自:
Miller
赞同来自:
Aar0n
赞同来自:
Miller
赞同来自:
Miller
赞同来自: