Check out example codes for "unity how to get y value". It will help you in understanding the concepts better.

Code Example 1

transform.position.y

Learn ReactJs, React Native from akashmittal.com