public void SetTitleAndDescription(CollectionType collection, Sprite sprite) { zoomTitle.text = Const.TitleForCollection(collection); zoomDescription.text = Const.DescriptionForCollection(collection); float aspectRaio = sprite.bounds.size.x / sprite.bounds.size.y; zoomImage.GetComponent <AspectRatioFitter>().aspectRatio = aspectRaio; zoomImage.sprite = sprite; }