void Start() { ScrollGridVertical scrollGridVertical = gameObject.AddComponent <ScrollGridVertical>(); //步骤一:设置模板cell。 scrollGridVertical.tempCell = tempCell; //步骤二:设置cell刷新的事件监听。 scrollGridVertical.AddCellListener(this.OnCellUpdate); //步骤三:设置数据总数。 //如果数据有新的变化,重新直接设置即可。 scrollGridVertical.SetCellCount(183); }