What exactly do these point too?
Are these values that actually reference a point in space?
And if so, is it world space/local space/view port/…?
What I need basically is the rect.position converted to the anchored position for a rectTransform.
What exactly do these point too?
Are these values that actually reference a point in space?
And if so, is it world space/local space/view port/…?
What I need basically is the rect.position converted to the anchored position for a rectTransform.
K found the answer myself, it’s the bottom left point of the rectangle in the canvas so the value between (0,0) and (1920,1080)
To convert to the anchored position:
x= rect.x - (float)Screen.width / 2
y=rect.y - (float)Screen.height / 2