Site icon Tangled Reality Studios

Order of GetWorldCorners in Unity

GetWorldCorners returns the positions of the corners of a RectTransform in world space. It drives me nuts that I can’t just get the order of the corners in the Get World Corners array by searching for it in Google. To fix this, I checked it out myself. Next time you need to know which is which from the Get World Corners array, you’ll find it here.

Order of GetWorld Corners:

0 – Bottom Left

1 – Top Left

2 – Top Right

3 – Bottom Right

I hope this helps someone else out. If nothing else, I’m sure it’ll help me later.

Exit mobile version