I want to find the exactly rect transform position.y that represets the bottom of the image based on it’s height.
,I need to know the exactly rect transform position.y of a Image but I don’t want the middle of the image, I want the bottom position based on it’s height.
It’s actually very easy. That would be float y = rectTransform.position.y - rectTransform.sizeDelta.y *0.5f;
.
You get the center of the image. Take the y coordinate. Then you get the y of the sizeDelta of the image and divide that by two. Than you subtract that from the center y coordinate. That should get you the bottom y of your image.
If you know the height and you know the midpoint then the bottom is midpointY - (height / 2).