ContentView CreateImageView(string content) { ContentView imgcont = Instantiate(ImageContentPrefab); imgcont.transform.SetParent(contentParent, false); int n = Convert.ToInt32(content[3] + ""); imgcont.GetComponent <Image>().sprite = contentManager.ImageDB[n - 1]; imgcont.GetComponent <Image>().preserveAspect = true; return(imgcont); }