Position is not a member of object

Hello.

I have a problem with this:

   for (i = 0; i < treeArray.length; i++)
   {
           var treePosition : Vector3 = Vector3.Scale(treeArray.position, terrain.size);  
   }

It just says

‘position’ is not a member of ‘Object’.

I don’t know what is wrong since im quite new in unity.
I tried to search but it didnt give me any answers.
Thanks for your time :slight_smile:

as i can see treeArray is an object and you are trying to access treeArray.position but it doesn’t got position