I have a vertical layout group containing 3 game object
when I try to get the correct position of the child Objects from the vertical Layout group, it does not giving the correct output.

I tried
myPosition = this.gameObject.transform.localPosition;
myPosition = this.gameObject.transform.position;
myPosition = this.GetComponent<RectTransform>().position;
myPosition = this.GetComponent<RectTransform>().anchoredPosition;
Non gave the correct output. How to get this


