Ejemplo n.º 1
0
    public Transform CreateItem(Transform parent)
    {
        if (Prefab == null)
        {
            return(null);
        }

        Transform itemView = AvailableItemListView.Instantiate(Prefab, parent) as Transform;

        return(itemView);
    }
Ejemplo n.º 2
0
    public Transform CreateItem(Transform parent)
    {
        if (Prefab == null)
        {
            return(null);
        }

        Transform itemView = AvailableItemListView.Instantiate(Prefab, parent) as Transform;

        itemView.GetComponent <Text>().text = "";
        return(itemView);
    }