private void SetPosition(RectTransform tra, ref float position) { Vector2 pos = tra.anchoredPosition; pos = new Vector2(0, position); tra.anchoredPosition = pos; position -= tra.rect.height; }