Example #1
0
    private void AddElement()
    {
        Cell cell = Instantiate(cellPrefab);

        cell.ElementName = scroller.GridLayout.transform.childCount.ToString();
        scroller.AddElement(cell.gameObject);
    }
Example #2
0
 private void onPoolReady()
 {
     Scroller.AddElement(1, 1);
 }