using System.Collections; using System.Collections.Generic; using UnityEngine; public class cRIARqUADRADO : MonoBehaviour { [System.Serializable] public class teste{ public string name; public int sla; public List cor; } [SerializeField] public List testes; public GameObject prefab; public Transform allign; public int NumerosQuadrados; // Start is called before the first frame update void Start() { for (int i = 0; i < NumerosQuadrados; i++) { GameObject objCriado = Instantiate(prefab); objCriado.transform.parent = allign; } } // Update is called once per frame void Update() { } }