高效ScrollView组件
注意事项:
- ScrollView 对应的条目 Item Cell Prefab,其挂在的脚本名称,需要与其名称一致;
- Item Cell prefab挂载的脚本中,需要实现方法: updateView(index, data){};
- 重点: 对于自下而上的排列,需要手动设置content Node和Item Cell Node的 anchorY=0,同理,自左而右,设置anchorX = 0; 对于自上而下的排列,需要手动设置content Node和Item Cell Node的 anchorY=1,同理,自左而右,设置anchorX = 1;