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 !

I found a partial answer to this elsewhere.

The following is copied from:

0 – Bottom Left

1 – Top Left

2 – Top Right

3 – Bottom Right