- Home /
Question by
flore_duno · Aug 23, 2016 at 07:42 AM ·
c#uirecttransform
How to use RectTransform.GetWorldCorners() ?
Hello,
Should I instantiate an array before using the function or can I just pass a non instantiate array as parameter ? If I must instantiate it, what is the needed length of it ? And when i have my array, what does represent the first element ?
Is fourCornersArray[0] the top left corner ? The bottom right corner ? Is it the same order everytime I call the function ?
Thanks in advance for your answers !
Comment
Answer by jimmac87 · May 22, 2017 at 03:55 PM
I found a partial answer to this elsewhere.
The following is copied from:
http://www.tangledrealitystudios.com/order-getworldcorners-unity/
0 – Bottom Left
1 – Top Left
2 – Top Right
3 – Bottom Right