unity how to get y value

C#
transform.position.y
Source

Also in C#: