在onload中设置visible 怎么没用啊 。
this.sprite = cc.find(“vip”,this.node).getComponent(cc.Sprite);
this.sprite.visible = false;
cc.log(“this.Sprite:”,this.sprite);
看下了 是不是没visible这个属性啊
在onload中设置visible 怎么没用啊 。
this.sprite = cc.find(“vip”,this.node).getComponent(cc.Sprite);
this.sprite.visible = false;
cc.log(“this.Sprite:”,this.sprite);
看下了 是不是没visible这个属性啊
visible是cc.Node的属性。应该使用this.sprite.node.visible = false;
谢了。在请教下 creator cc.ScrollView 是不是虚拟列表啊?creator的虚拟列表是哪个啊。。。。。。。。看着ScrollView是把所有的item都搞了出来,好吓人
没有虚拟列表,你得用cc.NodePool自己实现只显示需要的item,不需要显示的item放回NodePool。
http://cocos.com/docs/creator/scripting/pooling.html
谢谢了,受益非浅,已经点赞
我在1.9.1的Node属性中,找不到visible属性 删除了吗?